storacha/freeway

Empty CAR on web3/nft.storage gateways

Closed this issue · 4 comments

tennox commented

Posted on discord, redirected here:

It seems to me the web3.storage gateways returns empty CAR files when requesting IPLD dagJson roots (uploaded via web3.storage)
https://api.web3.storage/car/baguqeerachr27553ixrmlk4kkipgrkwb2vu7noavzqhogfqrcrp7336cmspq
https://w3s.link/ipfs/baguqeerachr27553ixrmlk4kkipgrkwb2vu7noavzqhogfqrcrp7336cmspq/?format=car
https://w3s.link/ipfs/baguqeerachr27553ixrmlk4kkipgrkwb2vu7noavzqhogfqrcrp7336cmspq/?format=car&dag-scope=all
=> 60 bytes, empty CAR
(also nft.storage & w3s.link)

The cloudflare-ipfs/ipfs.io/4everland gateways work fine:
https://cloudflare-ipfs.com/ipfs/baguqeerachr27553ixrmlk4kkipgrkwb2vu7noavzqhogfqrcrp7336cmspq?format=car

Tried with many different DAG-JSON encoded examples of different sizes.

Possibly related to #86

tennox commented

It's the same no matter the DAG size though... and pretty annoying, we're falling back to cloudflare gateways, but they often take a while to discover stuff from nft.storage

This is because ipfs-unixfs-exporter does not have a dag-json resolver: https://github.com/ipfs/js-ipfs-unixfs/tree/master/packages/ipfs-unixfs-exporter/src/resolvers

@tennox this should be fixed now - please shout if you have any more issues.