ipfs-shipyard / java-ipfs-http-client

A Java implementation of the HTTP IPFS API
MIT License
538 stars 243 forks source link

HTTPError: ipfs method not allowed with IPFS infura endpoint #176

Closed racetrack0616 closed 1 year ago

racetrack0616 commented 3 years ago

Trying to use ipfs infura api https://ipfs.infura.io:5001/api/v0 for publishing name in ipns. First I am trying to create a new RSA key and then generate peer ID using ipfs.name.publish as shown in official ipfs documentation.

The following error occurred:

  response: Response {
    size: 0,
    timeout: 0,
    [Symbol(Body internals)]: { body: [PassThrough], disturbed: true, error: null },
    [Symbol(Response internals)]: {
      url: 'https://ipfs.infura.io:5001/api/v0/key/list',
      status: 403,
      statusText: 'Forbidden',
      headers: [Headers],
      counter: 0
    }
  }
}
HTTPError: ipfs method not allowed
kevodwyer commented 1 year ago

infura api releated query. closing as stale.