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.

Timeout error handling

See original GitHub issue

Read Timeouts section of documentation. After glancing the related code here as well as here and here, I was left with a few questions.

  1. Are README suggestions still correct? Looks more like ETIMEDOUT error is exclusively connection-related, and ESOCKETTIMEDOUT read-related.
  2. Should client-side code also be checking for ESOCKETTIMEDOUT and ECONNRESET?
  3. Could you change the Error messages to something useful to user?

For 3, the errno-based names are already included as error.code. As such, could error.message be made more human readable [e.g., ETIMEDOUT-> new Error("server took too long to connect")]?

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:7

github_iconTop GitHub Comments

9reactions
plroebuckcommented, Mar 10, 2019

So it’s been a year now – still not even an acknowledgement this was even read by a maintainer…

0reactions
stale[bot]commented, Mar 9, 2020

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handling timeout notification errors - IBM
The TimeoutNotification node takes various actions when it handles errors with transactional messages, depending on whether the Failure and ...
Read more >
Error Handling - The Fuzzing Book
The code in this notebook helps with handling errors. ... The ExpectTimeout class allows you to interrupt execution after the specified time.
Read more >
TimeoutException (Java Platform SE 8 ) - Oracle Help Center
Blocking operations for which a timeout is specified need a means to indicate that the timeout has occurred. For many such operations it...
Read more >
How to deal with timeout exception in Java? - Stack Overflow
What is possible is to catch the RemoteException, retrieve it's cause and check if that's an instanceof SocketTimeoutException. try{ // Your ...
Read more >
What would be a user-friendly error message for HTTP ...
So this is specifically about HTTP status code 408 Request Timeout ? “The client did not produce a request within the time that...
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