net::ERR_CONNECTION_RESET angular api request causes duplicates?

只愿长相守 提交于 2021-02-20 03:46:43

问题


I have an application with a .NET c# middle tier and angular front end. I am calling an api which results in a long running process. In IE I captured a message saying net::ERR_CONNECTION_RESET. In Chrome, I'm seeing a failed status after 10 minutes.

I looked in our log tables and event viewer. The process is running on the server without failure, but something is causing the api controller method to run multiple times, every 5 minutes. In my developer tools there is no network indicator that a second call is being made.

Is there a timeout setting in IIS or web.config that might cause this?


回答1:


Possibilities

  1. The Server response passing from the backend is maybe not in the correct format.
  2. If the response time (For that particular API) is greater than 10 sec, then you need to enable the IIS timeout to a greater value. In angular HTTP service design pattern if server does not respond back then it will automatically retrigger the API call from front end itself


来源:https://stackoverflow.com/questions/48932750/neterr-connection-reset-angular-api-request-causes-duplicates

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!