Skip to content
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
@pcowgill

Description

@pcowgill

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:

https://github.com/ipfs/js-ipfs-http-client/blob/da9d17a38ce09d299e7180d489a56c1e276b4fb9/src/add/index.js#L43

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    pkg:http-clientIssues related only to ipfs-http-client

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions