net :: ERR_CONNECTION_RESET角度api请求导致重复? [英] net::ERR_CONNECTION_RESET angular api request causes duplicates?

查看:162
本文介绍了net :: ERR_CONNECTION_RESET角度api请求导致重复?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有.NET c#中间层和尖角前端的应用程序.我正在调用一个api,这会导致运行时间较长.在IE中,我捕获了一条消息,内容为net :: ERR_CONNECTION_RESET.在Chrome中,我在10分钟后看到失败状态.

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.

我查看了我们的日志表和事件查看器.该进程正在服务器上运行,没有失败,但是某种原因导致api控制器方法每5分钟运行多次.在我的开发人员工具中,没有网络指示器表明正在进行第二次呼叫.

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.

IIS或web.config中是否存在可能导致此问题的超时设置?

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

推荐答案

可能性

  1. 从后端传递的服务器响应的格式可能不正确.
  2. 如果(对于该特定API)响应时间大于10秒,则需要将IIS超时设置为更大的值.在有角度的HTTP服务设计模式中,如果服务器没有响应,则它将自动从前端本身重新触发API调用

这篇关于net :: ERR_CONNECTION_RESET角度api请求导致重复?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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