Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

error.response.clone() trigger error #263

Closed
Airkro opened this issue Jun 30, 2020 · 1 comment
Closed

error.response.clone() trigger error #263

Airkro opened this issue Jun 30, 2020 · 1 comment
Labels
bug Something isn't working

Comments

@Airkro
Copy link

Airkro commented Jun 30, 2020

https://github.com/sindresorhus/ky/blob/master/index.js#L398

Sometimes error.response return null.

I have to do this to make it work:

- response: error.response.clone(),
+ response: error.response ? error.response.clone() : null,
@sholladay
Copy link
Collaborator

Duplicate of #251

@sholladay sholladay marked this as a duplicate of #251 Jun 30, 2020
@sholladay sholladay added the bug Something isn't working label Jun 30, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants