You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Superagent hangs if the server is unresponsive and the only way around is setting a timeout.
This might go over many developers heads as a default timeout of 60 seconds is to be expected.
Documentation states it's expected behavior, but this is buried and is unnoticed until you actually use a timeout or have a request get freezing your app if using await.
EDIT: It seems that axios has the same behavior, so it could just be me in this case.
Node.js version: 12.22.0
OS version: Ubuntu 20.04
Description:
See above
Actual behavior
request.get('tiktok.com'); will never complete
Expected behavior
should throw a timeout error after 60 seconds if no timeout was set
Code to reproduce
request.get('tiktok.com');
Checklist
I have searched through GitHub issues for similar issues.
I have completely read through the README and documentation.
[] I have tested my code with the latest version of Node.js and this package and confirmed it is still not working.
The text was updated successfully, but these errors were encountered:
Describe the bug
Superagent hangs if the server is unresponsive and the only way around is setting a timeout.
This might go over many developers heads as a default timeout of 60 seconds is to be expected.
Documentation states it's expected behavior, but this is buried and is unnoticed until you actually use a timeout or have a request get freezing your app if using
await
.EDIT: It seems that axios has the same behavior, so it could just be me in this case.
Node.js version: 12.22.0
OS version: Ubuntu 20.04
Description:
See above
Actual behavior
request.get('tiktok.com');
will never completeExpected behavior
should throw a timeout error after 60 seconds if no timeout was set
Code to reproduce
request.get('tiktok.com');
Checklist
The text was updated successfully, but these errors were encountered: