ipfs / ipfs-webui

A frontend for an IPFS Kubo and IPFS Desktop
https://webui.ipfs.io
MIT License
1.56k stars 489 forks source link

React error on hash lookup #946

Open kungfooman opened 5 years ago

kungfooman commented 5 years ago

I am new to IPFS and just testing around, e.g. I wanted to see what happens when I add dtube hashes:

https://video.dtube.top/ipfs/QmcpbcM7ogmN6SJWf3VTQcgtpyi3wykzqgMDiDdNjmCh12

But using the hash causes bugs:

b3f3227e4ce0536b70a294d8bd8b5df1

Failed to resolve path

hacdias commented 5 years ago

Hey @kungfooman. I don't get the error, although I can't load it either. /cc @olizilla @fsdiogo

olizilla commented 5 years ago

The main problem here is that we're not able to discover that CID, via local IPFS nodes or the IPFS gateway nodes. https://ipfs.io/ipfs/QmcpbcM7ogmN6SJWf3VTQcgtpyi3wykzqgMDiDdNjmCh12 would ask the gateway nodes to try and find that content, but it's not finding it.

That's odd. I wonder if dtube are announcing their blocks on the main dht. @daviddias do you have any ideas?

We also need better error messages here. Their is an error in the log that shows https://video.dtube.top/ipfs/QmcpbcM7ogmN6SJWf3VTQcgtpyi3wykzqgMDiDdNjmCh12 is an invalid CID, which would happen if you try and use the full URL instead of a IPFS address. We can do a better job of explaining the input format that is expected for the explore form.

olizilla commented 5 years ago

Looks like they role with a default IPFS config https://github.com/dtube/deploy/blob/a84f452fc6a9ce823e8e574d301a1008c1318ddb/roles/ipfs/tasks/ipfsrun.yaml#L9-L12