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
Hi @guillenotfound, it seems you're observing such a behavior because of retry mechanism, which, by default, retries requests that timed out up to 5 times (please check retry documentation). That's why total execution time is longer than you're expecting. At the same time, timings in error, in my understanding, reflects the timings for the latest request (last retry).
Please try running your example with the following config:
Describe the bug
Actual behavior
The request is taking longer to respond but the timings in the error object look correct:
When executing the sample code, execution is taking above 6 seconds even if the timeout is 1.
Expected behavior
The request should last ~1000ms, it can be a few milliseconds more due to processing time, let's say max 1010ms.
Code to reproduce
I also have this in my tsconfig.json:
I've also tested this scenario with a brand new project and latest Got and I'm able to reproduce.
Checklist
The text was updated successfully, but these errors were encountered: