ipfs-shipyard / java-ipfs-http-client

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

Unknown Codec type: 120 #139

Closed Bertrandbenj closed 1 year ago

Bertrandbenj commented 5 years ago

The following code

        try {
            IPFS ipfs = new IPFS(new MultiAddress("/ip4/127.0.0.1/tcp/5001"));
            ipfs.refs.local();
            LOG.info("IPFS ");

        } catch (IOException e) {
            LOG.error("IPFS ", e);
        }

produces the following stack trace

Caused by: java.lang.IllegalStateException: Unknown Codec type: 120 at io.ipfs.cid.Cid$Codec.lookup(Cid.java:44) at io.ipfs.cid.Cid.cast(Cid.java:163) at io.ipfs.cid.Cid.decode(Cid.java:144)

on

ipfs.refs.local();

Libraries seems added properly

kevodwyer commented 1 year ago

Previous issues with dependencies should be resolved with latest release. Closing issue, feel free to re-open if required.