简体   繁体   English

Azure 函数 c# .net 抛出 502

[英]Azure function c# .net throws 502

I am having consumption plan in azure, do not have any gateway or proxy setup.我有天蓝色的消费计划,没有任何网关或代理设置。

While testing I got this error also its not logging in my app insights, it neglects that request, as like it did not reached/requested to it.在测试时,我也遇到了这个错误,它没有记录我的应用洞察,它忽略了这个请求,就像它没有到达/请求它一样。 How can fix this ?如何解决这个问题?

502 - Web server received an invalid response while acting as a gateway or proxy server

Cause:原因:

This problem is often caused by application level issues, such as:此问题通常是由应用程序级别的问题引起的,例如:

1.requests taking a long time 1.请求需要很长时间

2.application using high memory/CPU 2.使用高内存/CPU的应用程序

3.application crashing due to an exception. 3.应用程序因异常而崩溃。

Steps:脚步:

1.Observe and monitor application behavior 1.观察和监控应用行为

2.Collect data 2.收集数据

3.Mitigate the issue 3.缓解问题

Have a look of this Offcial doc .看看这个官方文档

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM