[Node.js] [Web Apps]在生产部署中的Azure / iisnode上获取500.1002 [英] [Node.js][Web Apps] Getting 500.1002 on Azure / iisnode in production deployment

查看:82
本文介绍了[Node.js] [Web Apps]在生产部署中的Azure / iisnode上获取500.1002的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用BitBucket在Azure网站上托管我的node.js应用程序。

I am hosting my node.js application with Azure Websites using BitBucket.

当我尝试访问Azure上托管的应用程序时,我收到错误500,并且该应用程序在本地工作时工作正常。此外,master和staging分支的代码也是相同的。暂存部署在Azure上运行良好但生产
不正常。

I am receiving error 500 when I try to access my application hosted on Azure and the application works fine when working locally. Also the code is same for master and staging branch right now. staging deployment is also working fine on Azure but production is not.

我关闭了Web.Config中的customErrors,但仍然没有关于错误的详细信息。

I turned off customErrors in Web.Config but still there are no details about the error.

我尝试删除ssl绑定,我认为这是staging和生产环境之间的唯一区别。但问题仍然存在。以下是来自Kudu Console的下载错误文件。

I tried removing the ssl binding which I believe is the only difference between staging and production environment. But issue remains. Here is the downloaded error file from Kudu Console.




更新:我删除了网络应用程序并创建了一个连接到同一存储库的新应用程序。它的工作非常好。 Web应用程序存在一些问题。不是
肯定是什么!





HTTP错误500.1002 - 内部服务器错误


由于发生内部服务器错误,无法显示页面。

推荐答案

你能来吗?分享你的Web.config?

Can you share your Web.config?

你在Node里面做https吗? IISNode将为您处理此问题。

Are you doing https inside of Node? IISNode will handle this for you.


这篇关于[Node.js] [Web Apps]在生产部署中的Azure / iisnode上获取500.1002的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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