HTTP错误502.3-坏网关+ Kotlin+ azure

发布于 2025-01-30 06:09:41 字数 1514 浏览 3 评论 0 原文

我正在Azure应用程序上部署带有Spring Boot的Kotlin源构建的JAR。实例。 “它使用可以工作”。为了跟踪问题,我已经对其进行了修改,以提供HTML的静态页面。当我浏览到页面时,服务器记录此有效的HTML文档:


IIS Detailed Error - 502.3 - Bad Gateway

HTTP错误502.3-错误网关

试图路由请求时发生了连接错误。

最有可能的原因:

  • CGI应用程序未返回有效的HTTP错误集。
  • 由于父网关中的错误,用作代理或网关的服务器无法处理该请求。

您可以尝试的事情:

  • 使用Debugdiag对CGI应用程序进行故障排除。
  • 确定代理或网关是否负责此错误。

详细的错误信息:

Module   httpPlatformHandlerNotification   ExecuteRequestHandlerHandler   httpPlatformHandlerMainError Code   0x8007042b Requested URL   https://AZUREAPPINSTANCE:80/Physical Path   D:\home\site\wwwrootLogon Method   AnonymousLogon User   Anonymous

更多信息:

This error occurs when a CGI application does not return a valid set of HTTP headers, or when a proxy or gateway was unable to send the request to a parent gateway. You may need to get a network trace or contact the proxy server administrator, if it is not a CGI problem.

Microsoft知识库文章:


浏览器显示指定的CGI应用程序遇到错误,服务器终止了该过程。

通常这意味着该应用程序。无法与其他服务交谈,但是这里是HTML的静态页面。 i think 存在一些网络错误配置,因为如果我转到https:// urepp/xyz,那么请求的url 是https:// azureappinstance:80/xyz Azure网络堆栈正在重写地址(port 80上的 https !)。

I am deploying a JAR built from Kotlin source with Spring Boot on an Azure app. instance. "It used to work". In an effort to track down the problem, I've modified it to serve a static page of HTML. When I browse to the page, the server logs this valid HTML document:


IIS Detailed Error - 502.3 - Bad Gateway

HTTP Error 502.3 - Bad Gateway

There was a connection error while trying to route the request.

Most likely causes:

  • The CGI application did not return a valid set of HTTP errors.
  • A server acting as a proxy or gateway was unable to process the request due to an error in a parent gateway.

Things you can try:

  • Use DebugDiag to troubleshoot the CGI application.
  • Determine if a proxy or gateway is responsible for this error.

Detailed Error Information:

Module   httpPlatformHandlerNotification   ExecuteRequestHandlerHandler   httpPlatformHandlerMainError Code   0x8007042b
Requested URL   https://AZUREAPPINSTANCE:80/Physical Path   D:\home\site\wwwrootLogon Method   AnonymousLogon User   Anonymous

More Information:

This error occurs when a CGI application does not return a valid set of HTTP headers, or when a proxy or gateway was unable to send the request to a parent gateway. You may need to get a network trace or contact the proxy server administrator, if it is not a CGI problem.

View more information »

Microsoft Knowledge Base Articles:


and the browser shows The specified CGI application encountered an error and the server terminated the process.

Usually that means that the app. can't talk to some other service but here it is serving a static page of HTML. I think there is some network misconfiguration because if I go to https://ourapp/XYZ then the Requested URL is https://AZUREAPPINSTANCE:80/XYZ so something in the Azure network stack is rewriting the address (https on port 80!).

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

话少情深 2025-02-06 06:09:41

这是答案,即使我不明白。

请参阅

如果我删除整个< pluginManagement> 元素,则已部署的Azure应用程序。作品。

Here is the answer, even though I don't understand it.

Refer to the POM, posted in my earlier question.

If I remove the entire <pluginManagement> element, the deployed Azure app. works.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文