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
According to the index.d.ts the GotOptions accept a number or a RetryOptions for the retry attribute.
Passing the attribute leads to an exception: RequestError: Unexpected retry option: retries
Expected behavior
Passing the retry parameter as in the code below would not lead to an exception.
Both ways fail, but should be good, according to @types/got.
Describe the bug
Actual behavior
According to the
index.d.ts
theGotOptions
accept a number or aRetryOptions
for theretry
attribute.Passing the attribute leads to an exception:
RequestError: Unexpected retry option: retries
Expected behavior
Passing the retry parameter as in the code below would not lead to an exception.
Both ways fail, but should be good, according to @types/got.
Code to reproduce
Checklist
The text was updated successfully, but these errors were encountered: