Replies: 1 comment
-
I'm not sure but from the documentation I understand that when providing your own |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
New got user here.
This is a simple script to test the retry functionality of the got library.
The code works and it retries if you add an invalid url (I'm using an invalid url for test), but it won't stop trying after the set limit (5 attemps).
I followed the documentation on GitHub; is the problem related on the status code returned by the server (error message: Bad response: 502)? If that were the case, if you try with another valid url (I don't have anyone) or simple disconnect your pc from the network (it throws the error connect ENETUNREACH) then you get an error that should be valid for the limit purpose (as indicated in the documentation). Where is the error?
Thanks.
Beta Was this translation helpful? Give feedback.
All reactions