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
This looks like a legit bug in Ky, unfortunately. The error may not have a response on it, which we don't check before attempting to clone it.
In hindsight, I'm kind of regretting #201. People should almost certainly just use error.response. This shortcut provides very little value. Most people are going to destructure the options anyway. I also think that, from the hook's perspective, it's more obvious that options.error.response may be undefined, as opposed to options.response.
The
error.response
on https://github.com/sindresorhus/ky/blob/master/index.js#L374is
undefined
when the error isAbortError
.Should I catch that exception in the retry function?
The text was updated successfully, but these errors were encountered: