sindresorhus / ky

🌳 Tiny & elegant JavaScript HTTP client based on the Fetch API
MIT License
13.61k stars 364 forks source link

Why I keep getting HTTPError when the throwHttpErrors is already set to `false` #572

Closed nekochan0122 closed 5 months ago

nekochan0122 commented 5 months ago

Untitled

sindresorhus commented 5 months ago

We have a test that shows it should be working, but I'm happy to look further into it if you submit a failing test.

https://github.com/sindresorhus/ky/blob/ec6733c97e5a2649b3683d5529517605eb6ba2ad/test/main.ts#L407-L416

nekochan0122 commented 5 months ago

We have a test that shows it should be working, but I'm happy to look further into it if you submit a failing test.

https://github.com/sindresorhus/ky/blob/ec6733c97e5a2649b3683d5529517605eb6ba2ad/test/main.ts#L407-L416

Sorry, the throwHttpErrors option is working, the Error was throw by other request.