【发布时间】:2018-03-21 21:58:28
【问题描述】:
我在使用应用服务计划将代码部署到 Azure Funtions 时遇到问题。我的函数运行时间很长(大约 4 分钟,用于业务逻辑),当我通过 Post man 调用它时,它响应 502。
指定的 CGI 应用程序遇到错误,服务器 终止进程。
此时我的函数还在运行,我在函数应用的门户上监控,4分钟后返回成功响应,但我遇到错误,客户端调用时收不到响应。
Response Message & Status Code Response Header
我阅读了下面的链接,发现可能是 Azure App Service Plan 的限制,但是如何配置 ASP 来解决这个错误?
一些信息: - Azure 函数 V2。 - 应用服务计划 S1 标准,2 个实例。
The specified CGI application encountered an error and the server terminated the process
【问题讨论】:
-
你试过最后一个链接的所有答案了吗?
-
@Thomas 我无法访问应用服务计划以修改为最后一个链接,所以现在我被困在这里,我的代码在本地运行正常,所以我认为问题来自 ASP。
标签: azure azure-functions azure-app-service-plans