REST API调用,偶尔会出现错误 [英] REST API call and occasionally coming error

查看:137
本文介绍了REST API调用,偶尔会出现错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

我在Azure中使用基于REST API(C#/ Core ASP.NET 2.2)的REST应用服务,问题是它有时会提供错误消息,如图片中所示下面。

I have Win API (C#/Core ASP.NET 2.2) based REST App Service in Azure and problem is that it sometimes gives error messages like in picture below.

通常当React Client调用REST服务时,一切正常,但有时会出现此错误。

Usually when React Client calls REST Service everything works properly but sometimes this error comes.

我不太关注提到的原因在错误消息中,如"NTFS权限"和"经过身份验证的用户无权使用此DLL"因为有时候它有效,有时候不行。

I don't quite follow reasons that are mentioned in error message like "NTFS permissions" and "Authenticated user does not have permission to use this DLL" because sometimes it works and sometimes not.

你们有没有人解决过这样的问题?从哪儿开始?当然,当我在IIS下自己的工作站中运行客户端和REST服务时,这很有效。

Have anyone of you solved problem like this? Where to Start? And of course this works well when I run Client and REST Services in my own Workstation under IIS.

Br

Michael

推荐答案

你能否启用
diagnostice logs
 以查看是否可以捕获更具体的错误?以上是一个通用的500.0错误,很难确定。

Can you please enable diagnostice logs to see if you can capture a more specific error? The above is a generic 500.0 error that will be tough to pinpoint.

查看Web服务器日志,看看是否可以捕获http错误和sub_status(ex 502.64)。

Check out the web server logs to see if you can capture a http error and the sub_status (ex 502.64).

请向我们报告日志中捕获的任何错误的详细信息。

Please report back to us the details of any errors captured in the log.


这篇关于REST API调用,偶尔会出现错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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