ipfs / go-ipfs-http-client

[archived] Legacy Kubo RPC client, use kubo/client/rpc instead.
MIT License
109 stars 41 forks source link

v0.6.0 Routing API errors #182

Closed avislash closed 1 year ago

avislash commented 1 year ago

After upgrading to go-ipfs-http-client v0.6.0 I recieve the following errors when attemping to run my program

# github.com/ipfs/go-ipfs-http-client
../../go/pkg/mod/github.com/ipfs/go-ipfs-http-client@v0.6.0/api.go:214:9: cannot use (*RoutingAPI)(api) (value of type *RoutingAPI) as iface.RoutingAPI value in return statement: *RoutingAPI does not implement iface.RoutingAPI (wrong type for method Put)
                have Put(context.Context, string, []byte) error
                want Put(context.Context, string, []byte, ...options.RoutingPutOption) error
../../go/pkg/mod/github.com/ipfs/go-ipfs-http-client@v0.6.0/dag.go:37:16: undefined: format.DefaultBlockDecoder
../../go/pkg/mod/github.com/ipfs/go-ipfs-http-client@v0.6.0/pin.go:204:16: cannot use &pinVerifyRes{…} (value of type *pinVerifyRes) as iface.PinStatus value in send: *pinVerifyRes does not implement iface.PinStatus (missing method Err)
welcome[bot] commented 1 year ago

Thank you for submitting your first issue to this repository! A maintainer will be here shortly to triage and review. In the meantime, please double-check that you have provided all the necessary information to make this process easy! Any information that can help save additional round trips is useful! We currently aim to give initial feedback within two business days. If this does not happen, feel free to leave a comment. Please keep an eye on how this issue will be labeled, as labels give an overview of priorities, assignments and additional actions requested by the maintainers:

Finally, remember to use https://discuss.ipfs.io if you just need general support.

aschmahmann commented 1 year ago

This repo is being moved into kubo as discussed in https://github.com/ipfs/kubo/issues/9124. The latest version of kubo master has client/rpc which is where this code has been moved.

There will be a kubo v0.21.0-rc1 later this week that you can use. Note that once this release is out the plan is to merge https://github.com/ipfs/go-ipfs-http-client/pull/180 (which will forward all types, etc. from this repo to kubo) and then archive this repo.

cc @Jorropo

lidel commented 1 year ago

@avislash Kubo 0.21.0 released, please upgrade, and switch to RPC client from https://github.com/ipfs/kubo/tree/master/client/rpc and if the problem is still present, fill an issue in that repo.