question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Error: timeout of 0ms exceeded

See original GitHub issue

Sentry reported a random error coming from Axios, Error: timeout of 0ms exceeded.

Under what circumstances would this error appear? We don’t have timeout settings configured, and 0ms seems like a mighty short time for any request to finish, so why is this error thrown?

It appears to have been a one off that is not readily reproducible, so I can’t provide test code, but the underlying network error seems to have been ECONNABORTED.

Axios version 0.18.0

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Reactions:86
  • Comments:37 (1 by maintainers)

github_iconTop GitHub Comments

29reactions
Undistractioncommented, Sep 11, 2019

For everyone enjoying this bug, I managed to catch this locally and match it up with a Sentry error report. It appears that this is the result of a genuine timeout, but the reporting of ‘0ms’ is simply a bug in axios’s reporting. So the errors are valid, however they are (or were in my case) real timeouts of significantly longer duration. @adamreisnz please could you re-tag this issue as a bug, which might get it some visibility.

10reactions
Undistractioncommented, Jun 12, 2019

We are seeing this when a stalled connection times out after 30 seconds. I think maybe the errors are valid, but the length of timeout is being misreported as 0.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Possible Unhandled Promise Rejection (id: 0) Error: timeout of ...
I want to show the total number of connections I have using the API I created, but when I run with the mobile...
Read more >
Webui restore: Failed to list the revisions: Error: timeout of 0ms ...
After about 2 minutes, I get the following error as a notification: Failed to list the revisions: Error: timeout of 0ms exceeded.
Read more >
What does 'timeout of 10,000ms exceeded' mean? - Quora
It means that the salesperson is compensated ten percent of whatever money they've brought into the company. Typically, this is represented by their...
Read more >
Error: timeout of 0ms exceeded - - Bountysource
It appears to have been a one off that is not readily reproducible, so I can't provide test code, but the underlying network...
Read more >
Handling timeout in Axios. Quick and easy - Medium
The default timeout is set to 0 which indicates no timeout. With that… ... Error: timeout of 2ms exceeded
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found