Skip to content

/api/v0/version is not whitelisted by some public endpoints #243

@p4bl0-

Description

@p4bl0-

Hello :),

The connect function of the ipfshttpclient module makes a request to /api/v0/version which fails with a HTTP 403 error on some IPFS API endpoints which do not whitelist access to /api/v0/version.

This prevent the use of py-ipfs-http-client with these endpoints.

It seems the JavaScript and Go IPFS HTTP library do not make this request, so it is probably not mandatory in the protocol and just used for some verifications by this Python package.

Maybe it should be possible to have an argument to prevent this request?

In the connect function the request is made by the call to client.apply_workarounds which in turn calls self.version which does the request.

Maybe an alternative would be to provide the version number manually to the connect function for example? This way the version number could be passed to apply_workaround which would use it rather that calling self.version.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions