Timeout error handling
See original GitHub issueRead Timeouts section of documentation. After glancing the related code here as well as here and here, I was left with a few questions.
- Are
README
suggestions still correct? Looks more like ETIMEDOUT error is exclusively connection-related, and ESOCKETTIMEDOUT read-related. - Should client-side code also be checking for ESOCKETTIMEDOUT and ECONNRESET?
- 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:
- Created 6 years ago
- Comments:7
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So it’s been a year now – still not even an acknowledgement this was even read by a maintainer…
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.