502-Web服务器在充当网关或代理服务器时收到无效响应 [英] 502 - Web server received an invalid response while acting as a gateway or proxy server
问题描述
当我将应用程序发布到Azure网站时,出现标题错误,并且没有任何效果.这不是暂时的.
When I publish my app to a Azure Website I get the error on the title and nothing works. It's not temporary.
我研究了一下,似乎与人们犯错误的问题无关.
I researched and looks like it's not related to the problems people have that error have.
我启用了日志记录功能,但是并没有太多意义.
I enabled logging but haven't got a much significat otuput.
日志显示:
2014-01-15 10:56:26〜1MANDOOSYSTEM GET/诊断/设置 X-ARR-LOG-ID = 5632dfdf-9cda-482a-a1d8-e0a9944c8e51 443-70.37.162.148 Azure门户/3.14.00298.7--mandoosystem.scm.azurewebsites.net 200 0 0463939 1718
2014-01-15 10:56:26 ~1MANDOOSYSTEM GET /diagnostics/settings X-ARR-LOG-ID=5632dfdf-9cda-482a-a1d8-e0a9944c8e51 443 - 70.37.162.148 Azure-Portal/3.14.00298.7 - - mandoosystem.scm.azurewebsites.net 200 0 0 463 939 1718
想法?
推荐答案
经过反复尝试,最终导致了代码错误,如果连接字符串的设置不正确,则将导致堆栈溢出,如果不是这样的话t代表云.
After some trial and error, it ended up being a code error, that would cause a stack overflow if the connection string wasn't set correctly, which wasn't for the cloud.
由于启用了所有日志记录功能,我希望在云中会看到更有意义的错误.
I would expect to see a more meaningful error while in the cloud since I enabled all the logging features.
不确定这是如何工作的,但显然服务器本身正在超时,而我认为另一台服务器(网关)对出现的情况一无所知.只是我的假设.
Not sure how this works but apparently the server itself was timing out and the other server, the gateway I believe, didn't have a clue on what was up. Just my assumption.
这篇关于502-Web服务器在充当网关或代理服务器时收到无效响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!