为什么Azure会随机给我500个错误? [英] Why is Azure giving me random 500 errors?

查看:69
本文介绍了为什么Azure会随机给我500个错误?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个Node.js Web应用程序并将其部署为Azure Web应用程序.该Web应用程序基本上是从Azure存储帐户获取数据并将其显示给客户端.很简单.

I've built a Node.js web application and deployed it as an Azure web app. The web app basically gets data from an Azure storage account and displays it to the client. Very simple.

有时,数据可能需要一段时间才能返回到客户端.因此,我正在使用Promise处理此问题的异步性质.

Sometimes it can take a while for the data to get back to the client. So I'm using promises to handle the asynchronous nature of this issue.

在开发服务器上,没有问题.数据始终将其返回给客户端. (在Internet Explorer,Chrome和Firefox上进行了测试)

On a development server, there are no problems. The data always makes it back to the client. (Tested on Internet Explorer, Chrome, and Firefox)

但是,在Azure Web应用程序中,有时数据将其返回给客户端,有时请求失败(总是在5秒后),并且客户端可以在浏览器的开发人员工具中看到500(内部服务器)错误.

However, in the Azure web app, sometimes the data makes it back to the client, and sometimes the request fails (always after 5 seconds), and the client can see a 500 (internal server) error in the browser's developer tools.

现在,即使客户端收到500错误,天蓝色的日志流也没有显示任何问题,并且服务器继续工作,就像从未发生过问题一样.

Now even though the client receives a 500 error, the azure log stream shows no problems, and the server continues working like a problem never occurred.

此网络应用程序使用免费的分层服务计划构建,该计划使用共享资源.这是问题还是在Azure中有任何人有此问题的经验?

This web app is built with a free tier service plan which uses shared resources. Is this the problem or has anyone had any experience with this problem in Azure?

推荐答案

在Microsoft论坛上提出了相同的问题:

Asked the same question on the Microsoft forum:

原来这是Azure的问题,而不是我的代码.我的网站正在运行.

Turns out it was an issue with Azure and not my code. My site is now working.

这篇关于为什么Azure会随机给我500个错误?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆