- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我已经解决这个问题两天了。我在 AWS 中有一个 HTTP API 网关,其中我有不同的路由与 HTTP 代理集成。例如:
“https://apigateway.domain.com/service/path”路由到“https://service.domain.com/path”。
'apigateway.domain.com' 是在 API 网关上配置的自定义域名,'service.domain.com' 是一个域,其 dns 条目是带有 ubuntu 和 nginx 的 EC2 实例的弹性 IP。
直到今天,我们都有不同的路由都指向一些 EC2 实例和我们在西类牙的主要 Web 应用程序。我们正在配置我们必须提供服务的另一个国家/地区。我们在 us-west-1 区域为它启动了一些 EC2 实例,分配了一个弹性 IP 并创建了它的域名。
问题是我们向 apigateway.domain.com/country/service/path 发出请求,它以 500 状态码回答:
{
"message": "Internal Server Error"
}
如果我直接对 EC2 实例的域名执行相同的请求,它会以 200 状态代码回答我。
{ "accountId": "", "apiId": "", "authorizerError":"-", "basePathMatched": "(none)", "fullDomainName": "********","msgString": " "Internal Server Error"", "httpMethod": "GET","integStatus": "200", "requestId":"flJRogGhliAEPUA=", "ip":"138.199.37.68", "requestTime":"19/May/2021:14:36:32 +0000","httpMethod":"GET","routeKey":"ANY /mx/staging/tmc/{proxy+}","status":"500","protocol":"HTTP/1.1", "responseLength":"35", "error":"Internal Server Error", "errorResponseType": "INTEGRATION_FAILURE","integrationErrorMsg": "-", "authorizerError": "-" , "integErrorMsg":"-", "status": "500" }
最佳答案
到达 AWS 支持团队后,结果发现是最终 nginx 服务器上的 SSL 证书存在问题(格式错误)。
他们告诉我他们会改进这个错误信息,因为它不是那么具有描述性。
关于ubuntu - AWS API 网关返回 { "message": "Internal Server Error" } in HTTP proxy integration,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/67606538/
我在这里阅读了有关代理的示例: http://docs.oracle.com/javase/1.3/docs/guide/reflection/proxy.html 可以看到,'invoke'方法中的
在我的通用 nuxt 应用程序中,我将代理设置为 true 并重写了我的 url 以避免 CORS 问题。但是当我将代理设置为 true 时,我所有的发布请求都会更改为获取请求。不明白为什么以及如何将
我正在开发一个连接到 SFTP 服务器并使用 Apache Commons VFS 下载文件的应用程序,它工作得很好,但系统需要允许用户根据需要指定代理。 现在,我知道 Apache Commons
跟随线程[实体无法转换为javassist.util.proxy.Proxy,我现在确实有服务器端错误(tks thomas) 我无法在我的应用程序中面对真正的问题。 java.lang.ClassC
我正在使用 Charles Proxy 重写 API 的响应以进行测试。 如果我设置断点,我就可以按照自己的意愿完全重写原始响应。 但是,如果我想通过“重写”工具自动化它,我就陷入困境了,似乎你无法修
让我解释一下困境。 我使用 Amazon 的 3 项服务:EC2、S3 和 CloudFront。 EC2 接收上传的文件,并将其存储在 S3 存储桶中。然后 CloudFront 镜像 S3 存储桶
我正在使用 Caddy 在 DigitalOcean Ubuntu droplet 上反向代理某些站点。 这是我的 Caddy 文件,非常简单:upside_down: my-site.com {
我正在尝试测试承受多台计算机负载的 SOCKS 代理。我的代码大纲类似于 使用一个客户端直接连接到服务器,下载测试文件,并记录所花费的时间。 通过代理与一个客户端连接,下载测试文件,并记录所花费的时间
以下情况: 如果我将浏览器的 http/https 代理设置为 Charles 为 (127.0.0.1:8888) 配置的端口,使用 Charles 代理拦截 Web 流量就可以正常工作 如果我将浏
我有一个使用 grunt 构建的 angularJs 应用程序和一个用 Java 编写的在 tomcat 服务器上运行的服务器后端。为了在开发时将它们连接在一起,我想使用 grunt-connect-
对于文件上传,我试图在我的 Spring Controller 中注入(inject)并使用 validator ,如下所示: @RestController @RequestMapping("/ap
我需要使用 CaSTLe DynamicProxy 来代理接口(interface),方法是向 ProxyGenerator.CreateInterfaceProxyWithTarget 提供接口(i
我已经看到,当不同框架(例如实现 EJB 规范的框架或某些 JPA 提供程序)中发生错误时,堆栈跟踪包含像 com.sun.proxy.$Proxy 这样的类。我知道代理是什么,但我正在寻找更技术性和
我正在使用带有多个 apiserver 的集群设置,它们前面有一个负载均衡器,用于外部访问,并安装在裸机上。 就像 High Availability Kubernetes Clusters 中提到的
我使用 Charles 代理(在 OS X 10.9.3 下,Mavericks 下)修改 Origin header ,以便我连接的 API(开发中)接受来自开发环境的传入请求。 我设法通过一个简单
我已经在 Python 中实现了一个“网络服务”父类(super class),如下所示: class NetworkService (threading.Thread): """
我正在使用node.js代理。但是它工作成功: proxy.on('proxyResponse', function (proxyRes, req, res) { console.log("h
我正在尝试使用Nginx-Proxy在Ubuntu VPS的docker容器内运行WordPress网站。 我创建了以下docker-compose.yml文件 version: '3.4' serv
我一直在使用 DataKinds 扩展以类型安全的方式将类型级别 Nats 传递给函数,我只是想知道是否有更好的编写方式: (Proxy :: Proxy 42) 例如,如果类型系统看到参数需要,是否
已关闭。此问题旨在寻求有关书籍、工具、软件库等的建议。不符合Stack Overflow guidelines .它目前不接受答案。 我们不允许提问寻求书籍、工具、软件库等的推荐。您可以编辑问题,以
我是一名优秀的程序员,十分优秀!