Skip to content

archon.utils.validateFileFromURI fails to use provided gateway. #22

Open
@eccentricexit

Description

@eccentricexit

As the title says, this is the code:

const providerURL = 'https://kovan.infura.io/v3/1234342ba...'
const ipfsGateway = 'https://ipfs.kleros.io'
const archon = new Archon(providerURL, ipfsGateway)

...

const data = await archon.utils.validateFileFromURI('/ipfs/QmRNK2cpW2i4Q9BBp58ALuhHnXuKEPkSBLU5q4mdtBG9i4/dutchx-badge.pdf')

Error and prints the following to the console:
GET http://localhost:3000/ipfs/QmRNK2cpW2i4Q9BBp58ALuhHnXuKEPkSBLU5q4mdtBG9i4/dutchx-badge.pdf 404 (Not Found)

Setting the provider with archon.setIpfsGateway(uri) does not solve it.

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