相关文章推荐
有腹肌的油条  ·  Remplacer ...·  3 月前    · 
活泼的硬盘  ·  sys.dm_os_threads ...·  5 月前    · 
谦和的蘑菇  ·  ios extension log-掘金·  10 月前    · 
Collectives™ on Stack Overflow

Find centralized, trusted content and collaborate around the technologies you use most.

Learn more about Collectives

Teams

Q&A for work

Connect and share knowledge within a single location that is structured and easy to search.

Learn more about Teams

The OPTION/POST Request is failing inconsistently with a console Error as err_timed_out. We get the issue inconsistently, it's only observed sometimes. Otherwise the request gets proper response from the back end. When it's timing out, the request doesn't even reach the server.

I have done some research on the stuff and found that due to maximum 6 connections to a resource restrictions it may wait for getting a connection released. But, I don't see any other requests pending ,all the other requests were completed.

In the timeline I can always see that it stalled for 20.00 seconds. Most of the time the time is same. But, it only shows that its been stalled for some time nothing else in the timeline.

The status of the request shows failed ERR_Connection_Timed_Out. Please help.

The Network Timing

Console Error

How about the back-end part of the request? Do you have any control on that? Do you get a response calling the same request from a different machine? Yooz May 15, 2015 at 6:55 Do you have error handler on your promise? I mean if you don't any other than ok will timeout when there is no handler catching them. mico May 17, 2015 at 12:55 @mico we have a failure handler registered just like mentioned here. stackoverflow.com/a/29917375/4260544 Divya MV May 18, 2015 at 5:30 What is your timeout value? The value in the answer is 200ms which may be too short for a test backend Elliot Swart May 20, 2015 at 16:39

I've seen this issue when I use an authenticated proxy server and usually a refresh of the page fixes it.

Are you using an authenticated proxy server where you are seeing this behavior? Have you tried on a pc with direct access (i.e. without proxy) to the Internet?

The issue is highly inconsistent.Can we somehow debug whats happening to confirm its due to the Proxy.We are struggling to find the root cause. Divya MV May 22, 2015 at 5:07 If you see this documentation ( developer.chrome.com/devtools/docs/… ), this is explained in the section "Resource network timing". Excerpt for Stalled state: Time the request spent waiting before it could be sent. This time is inclusive of any time spent in proxy negotiation. Additionally, this time will include when the browser is waiting for an already established connection to become available for re-use, obeying Chrome's maximum six TCP connection per origin rule. S.Krishna May 25, 2015 at 8:01

I've got the same problem when I choose another ISP. I thought I would have only to put my new ID and password, but it wasn't the case. I have an ADSL modem with a dry loop.

All others services were fine (DNS resolution, IP telephony, FTP, etc).
I did a lot of tests (disable firewall, try some others navigator, try under Linux, modem default factory, etc) none of those tests were successful.

To resolve the problem ERR_TIMED_OUT , I had to adjust the MTU and MRU values. I put 1458 rather than 1492 , which is the default value. It works for me. Maybe some ISPs use different values. Good luck.

Thanks for contributing an answer to Stack Overflow!

  • Please be sure to answer the question . Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers .