Azure App Service显示“此页面” IS NEN不起作用,现在正常工作。但是请求是“ 200 ok”。在日志中

发布于 2025-02-11 07:17:22 字数 814 浏览 1 评论 0原文

我有一个Azure Web应用程序服务,我正在运行.NET 6应用程序。此应用程序需要一台服务器,该服务器作为Azure容器应用程序运行(服务器部件中一切正常)。 当我运行Web应用程序服务时,我登录并之后查看以下内容:

但是,在服务器端,我可以看到我的请求返回200。日志中根本没有错误。

我注意到的另一件事是,我去了Kudu查看Web应用程序日志,在“详细错误”中,我发现了我遇到的错误:

我还尝试在Web.config中关闭自定义错误,以查看是否可以获得更详细的错误。但是只有这个:

服务器中绝对没有错误。

我认为这没有帮助,但我认为我应该提到这一点。 有人知道我如何解决这个问题吗?

I have an Azure Web App Service where I'm running my .NET 6 application. This application requires a server, which is running as Azure Container App (everything works fine in the server part).
When I run my web app service, I log in and afterwards see the following:
enter image description here

However on the server side I can see my request which returned 200 OK. There are no errors in the logs at all.

Another thing that I noticed, I went to KUDU to see the web app logs, and in the "Detailed Errors" I found the error that I get:
enter image description here

I also tried turning custom errors off in the web.config to see if I could get a more detailed error. But only got this:
enter image description here

There're absolutely no errors in the server.

I don't think that's helpful but I thought I should mention that.
Does anyone know how I can troubleshoot this?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

时光磨忆 2025-02-18 07:17:22

与“错误”页面中一样,没有提到原因,这完全是由于Web App服务正在运行的域上的证书而导致的错误。这可能是因为使用了Web应用程序域的不正确格式和语法,并创建了此问题。

缺少日志中的错误号:

200:ok 用于指示请求已成功制作,处理和执行,并且请求和响应中没有错误。

由于数据在页面上不可见并显示 400错误即使是 200:OK 从服务器端,这纯粹是该域的证书错误,数据传输和权限。

200:确定不是日志中的错误。这是状态代码。状态代码将在日志中可见,因为操作发生的情况没有错误,因此不会显示日志中的任何错误,因为 status is ok ok ok 。证书是错误背后的原因。需要检查域及其证书。

As in the error page, the reason was not mentioned, this is perfectly the error due to the certificate on the domain which the web app service is running. This could be because of using the not proper format and syntax of the web app domain and that creates this issue.

Missing the error number in logs:

The 200:ok is used to indicate that the request is successfully made, processed and executed and there is not error in the request and response.

As the data is not visible on the page and showing 400 error even though it is 200:ok from server side, this is purely the certificate error of the domain, regarding the data transmission and permissions.

200:OK is not an error in logs. It is a status code. Status code will be visible in the logs, as there is not error in the operation happened, it Will not show anything error in log as status is OK. The certificate is the reason behind the error. Need to check the domain and its certificate.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文