Azure应用服务 - 启用身份验证后失败

发布于 2025-02-11 09:41:20 字数 937 浏览 2 评论 0 原文

我们有一个应用程序,该应用使用带有令牌的RESTAPI从Azure Devops服务中获取数据。没有身份验证,它可以正常工作。

在启用身份验证后,出现错误500/431而无需任何解释。单个租户和新申请注册的身份验证设置。


解决此问题的唯一方法是使用Azure使用容器构建 - 使用VS代码发布&构建 - 使用自定义容器失败总是


我尝试以下没有成功的情况:

We have an app which get data from Azure DevOps Services using RestAPI with token. Without authentication it is working fine.

After enabling authentication get errors 500/431 without any explanation. Authentication set for single tenant and with new application registration.


THE ONLY WAY TO GET AROUND THIS PROBLEM WAS TO USE A CONTAINER BUILD FROM AZURE - USE VS CODE TO PUBLISH & BUILD - USING A CUSTOM CONTAINER FAILED ALWAYS


I tried the following without success:

Any advice would be most appreciated

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

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

发布评论

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

评论(1

゛时过境迁 2025-02-18 09:41:20

错误 500 如果您启用了对客户端监视的应用程序见解,则可能发生。

请检查您是否已启用了该选项:

APPINSIGHTS_JAVASCRIPT_ENABLE = true

如果启用了该选项,请通过分配 false 参数 因此,L.González的线程

这些 500/431 错误是由于许多原因而出现的,并且要知道错误背后的问题,请尝试启用诊断日志记录。

“在此处输入映像说明”

以了解有关诊断日志的更多信息,请参阅此 msdoc

尝试重新启动应用程序服务和应用程序服务和提高 azure支持票 如果问题仍然存在。

参考:

修复Azure Web应用程序错误500? - 堆叠溢出

The error 500 may occur if you have enabled App Insights monitoring on client-side.

Please check whether you have enabled that option or not like below:

APPINSIGHTS_JAVASCRIPT_ENABLE = true

If it is enabled, disable it by assigning false parameter as suggested in this SO Thread by L. González.

These 500/431 errors occur due to many reasons and to know the exact issue behind the error, try enabling diagnostic logging.

enter image description here

To know more about diagnostic logging please refer this MsDoc

Try restarting the App Service and raise Azure Support Ticket if still the issue persists.

Reference:

how do I fix the azure web app error 500? - Stack Overflow

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