Invalid ipfs path: invalid CID

I’m getting ipfs invalid ipfs path error when I try to get the assets.

root@vm:~# curl http://localhost:3000/asset/v0/eTnwq9eVa8g28eVa8g281GYxMsd9MCcu1GYxMsd9MCcuQJX
invalid ipfs path: invalid path “/ipfs/undefined”: invalid CID: expected 1 as the cid version number, got: 31965309853

Is this something related to my ipfs config or the video files in the repo?

Error:
invalid ipfs path: invalid path “/ipfs/undefined”: invalid CID: expected 1 as the cid version number, got: 31965309853

Golang version: go1.14.4
Repo version: 10
go-ipfs version: 0.6.0

systemd[1]: Started ipfs.
ipfs[10167]: Initializing daemon...
ipfs[10167]: System version: amd64/linux
ipfs[10167]: Swarm listening on /ip4/127.0.0.1/tcp/4001
ipfs[10167]: Swarm listening on /ip4/127.0.0.1/udp/4001/quic
ipfs[10167]: Swarm listening on /ip4/172.17.0.1/tcp/4001
ipfs[10167]: Swarm listening on /ip4/172.17.0.1/udp/4001/quic
ipfs[10167]: Swarm listening on /ip4/27.0.0.1/tcp/4001
ipfs[10167]: Swarm listening on /ip4/27.0.0.1/udp/4001/quic
ipfs[10167]: Swarm listening on /p2p-circuit
ipfs[10167]: Swarm announcing /ip4/127.0.0.1/tcp/4001
ipfs[10167]: Swarm announcing /ip4/127.0.0.1/udp/4001/quic
ipfs[10167]: Swarm announcing /ip4/27.0.0.1/tcp/4001
ipfs[10167]: Swarm announcing /ip4/27.0.0.1/udp/4001/quic
ipfs[10167]: Swarm announcing /ip6/::1/tcp/4001
ipfs[10167]: Swarm announcing /ip6/::1/udp/4001/quic
ipfs[10167]: API server listening on /ip4/127.0.0.1/tcp/5001
ipfs[10167]: WebUI: http://127.0.0.1:5001/webui
ipfs[10167]: Gateway (readonly) server listening on /ip4/127.0.0.1/tcp/8080
ipfs[10167]: Daemon is ready

That does not seem to be a valid CID, and you are querying through some other app so hard to say.

2 Likes

Also, please upgrade to go-ipfs 0.8.0.

2 Likes

What is the simplistic way to test a file stored in the ipfs repo?
Should I check the web UI or query one of the swarms?