This repository was archived by the owner on Feb 12, 2024. It is now read-only.
This repository was archived by the owner on Feb 12, 2024. It is now read-only.
Handle case where res.body is undefined after making a request #2847
Closed
Description
It would be nice if you could add error handling for if res.body
is undefined after making a ky request.
Like here, for instance:
That way in envs that need a polyfill or where a polyfill is used that doesn't implement the complete fetch spec, the error message will be more obvious.
Thanks!