-
Notifications
You must be signed in to change notification settings - Fork 199
Description
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.