filecoin-project / lassie

A minimal universal retrieval client library for IPFS and Filecoin
Other
109 stars 17 forks source link

fetch example in readme broken #487

Open momack2 opened 1 month ago

momack2 commented 1 month ago

the getting started uses an example car file - but there are no providers for this car file in IPNI: https://github.com/filecoin-project/lassie?tab=readme-ov-file#fetch-example https://cid.contact/cid/bafybeic56z3yccnla3cutmvqsn5zy3g24muupcsjtoyp3pu5pm5amurjx4

"> Retrieval failure from indexer: no candidates"

rvagg commented 1 month ago

Sad, cause it's an awesome video; I was relying on web3.storage to keep that stored, I thought there were some longevity guarantees for things stored there; even them running their own indexed node; I guess in a storacha world that's no longer true?

Screenshot 2024-09-19 at 7 43 06 PM
agmap commented 1 month ago

There are providers on cid.contact and also on DHT. https://delegated-ipfs.dev/routing/v1/providers/bafybeic56z3yccnla3cutmvqsn5zy3g24muupcsjtoyp3pu5pm5amurjx4 I can fetch it without issues using lassie. 🤔 But I recognised that tomorrow the API of cid.contact was down.

rvagg commented 1 month ago
$ go run ./cmd/lassie/ fetch bafybeic56z3yccnla3cutmvqsn5zy3g24muupcsjtoyp3pu5pm5amurjx4
go: downloading github.com/ipfs/boxo v0.18.1-0.20240517022203-894484c9e656
Fetching bafybeic56z3yccnla3cutmvqsn5zy3g24muupcsjtoyp3pu5pm5amurjx4..................
Fetched [bafybeic56z3yccnla3cutmvqsn5zy3g24muupcsjtoyp3pu5pm5amurjx4] from [12D3KooWNTSFywHjGbmGN1aEqJNp54pDKaiwqpthRrvFZETo37pW]:
        Duration: 2.964158081s
          Blocks: 18
           Bytes: 15 MiB

so it does work; tried with main and v0.23.2

@momack2 maybe try again? perhaps it was a temporary indexer blip?

agmap commented 1 month ago

Works with CLI

lassie fetch -p bafybeic56z3yccnla3cutmvqsn5zy3g24muupcsjtoyp3pu5pm5amurjx4                     
Fetching bafybeic56z3yccnla3cutmvqsn5zy3g24muupcsjtoyp3pu5pm5amurjx4
Querying indexer for bafybeic56z3yccnla3cutmvqsn5zy3g24muupcsjtoyp3pu5pm5amurjx4...
Found 7 storage provider candidate(s) in the indexer:
        12D3KooWKGCcFVSAUXxe7YP62wiwsBvpCmMomnNauJCA67XbmHYj, Protocols: [transport-graphsync-filecoinv1]
        12D3KooWJ8YAF6DiRxrzcxoeUVjSANYxyxU55ruFgNvQB4EHibpG, Protocols: [transport-graphsync-filecoinv1]
        12D3KooWRPVDpphaViorF5ZSRzQbNbQUhdPkmnoGhWiXr3HDhg1E, Protocols: [transport-bitswap]
        12D3KooWJ8YAF6DiRxrzcxoeUVjSANYxyxU55ruFgNvQB4EHibpG, Protocols: [transport-ipfs-gateway-http]
        12D3KooWJWAwD6CbJnDm6tHcFuZxvWrjhp53hDjLHM1GiP1pYXmY, Protocols: [transport-graphsync-filecoinv1]
        12D3KooWHKChM2uYi4EXREaCGtaxersCsp7hbFiMqMUK8o7CgV6Q, Protocols: [transport-graphsync-filecoinv1]
        12D3KooWNTSFywHjGbmGN1aEqJNp54pDKaiwqpthRrvFZETo37pW, Protocols: [transport-graphsync-filecoinv1]
Retrieving from [12D3KooWJ8YAF6DiRxrzcxoeUVjSANYxyxU55ruFgNvQB4EHibpG] (started-retrieval)...
Retrieving from [12D3KooWJ8YAF6DiRxrzcxoeUVjSANYxyxU55ruFgNvQB4EHibpG] (connected-to-provider)...
Retrieving from [Bitswap] (started-retrieval)...
Retrieving from [12D3KooWNTSFywHjGbmGN1aEqJNp54pDKaiwqpthRrvFZETo37pW] (started-retrieval)...
Retrieving from [12D3KooWJ8YAF6DiRxrzcxoeUVjSANYxyxU55ruFgNvQB4EHibpG] (started-retrieval)...
Retrieving from [12D3KooWKGCcFVSAUXxe7YP62wiwsBvpCmMomnNauJCA67XbmHYj] (started-retrieval)...
Retrieving from [12D3KooWJWAwD6CbJnDm6tHcFuZxvWrjhp53hDjLHM1GiP1pYXmY] (started-retrieval)...
Retrieving from [12D3KooWHKChM2uYi4EXREaCGtaxersCsp7hbFiMqMUK8o7CgV6Q] (started-retrieval)...
Retrieval failure for [12D3KooWJ8YAF6DiRxrzcxoeUVjSANYxyxU55ruFgNvQB4EHibpG]: HTTP request failed, remote response code: 500
Retrieving from [12D3KooWKGCcFVSAUXxe7YP62wiwsBvpCmMomnNauJCA67XbmHYj] (connected-to-provider)...
Retrieving from [12D3KooWKGCcFVSAUXxe7YP62wiwsBvpCmMomnNauJCA67XbmHYj] (proposed)...
Retrieving from [12D3KooWKGCcFVSAUXxe7YP62wiwsBvpCmMomnNauJCA67XbmHYj] (accepted)...
Retrieving from [12D3KooWJ8YAF6DiRxrzcxoeUVjSANYxyxU55ruFgNvQB4EHibpG] (connected-to-provider)...
Retrieving from [12D3KooWKGCcFVSAUXxe7YP62wiwsBvpCmMomnNauJCA67XbmHYj] (first-byte-received)...
Retrieving from [12D3KooWJWAwD6CbJnDm6tHcFuZxvWrjhp53hDjLHM1GiP1pYXmY] (connected-to-provider)...
Retrieving from [12D3KooWNTSFywHjGbmGN1aEqJNp54pDKaiwqpthRrvFZETo37pW] (connected-to-provider)...
Retrieving from [12D3KooWHKChM2uYi4EXREaCGtaxersCsp7hbFiMqMUK8o7CgV6Q] (connected-to-provider)...
Received 18 blocks / 15 MiB....
Fetched [bafybeic56z3yccnla3cutmvqsn5zy3g24muupcsjtoyp3pu5pm5amurjx4] from [12D3KooWKGCcFVSAUXxe7YP62wiwsBvpCmMomnNauJCA67XbmHYj]:
        Duration: 3.248162s
          Blocks: 18
           Bytes: 15 MiB