@KrishnaPG it takes a little more time than we want right now for the network to learn you provide a block. Another thing, is the node that you’re ipfs.dag.put-ing to always online? I can’t see that hash either right now, but if you added it to your local node and your machine is off, then I won’t be able to.
HTTP Gateway operates on files, and it expects DAG to be unixfsv1 (dag-pb). This means you should think about HTTP Gateway as ipfs cat instead of ipfs dag get, which works on lower level.
Looks like the DAG link is working, though it is very very slow than the IPLD explorer.
One point worth considering in this scenario is:
knowing the source peerID (from which the block was resolved)
Currently the IPFS gateway or IPLD explorer does not indicated from which peer the block is resolved. For beginners, this kind of information is invaluable in understanding the behavior of these discrete systems.
For example,
it is unclear if both IPFS gateway and IPLD explorer resolved the block from the same peer, and if so why IPFS gateway is so slow, while IPLD explorer is almost instant
the IPLS explorer use the local IPFS node hence it is instantaneous if you create your dag locally… to help the public gateway to learn about a content, I usually put a “fresh” pin on the CID and do a swarm connect to the gateway, followed by a “no-cors” blind fetch HEAD on the public url of the dag.
I’m not quite sure what difference you’re referring to with " there is a difference between that and the output of Inspect and View on IPFS Gateway" but the differences that I’m seeing from what you’ve posted is. the first url is a CIDv0 and the second one is a CIDv1. I can’t tell if they refer to the same content but I’m guessing that they do.
The third url is is rewritten to include the CID as a subdomain to avoid same origin problems and was introduced in IPFS 0.5.0 but was also rewritten to access it through your local node on the standard getaway port 8080.
The third url is is rewritten to include the CID as a subdomain to avoid same origin problems and was introduced in IPFS 0.5.0 but was also rewritten to access it through the your local node on the standard getaway port 8080.
Thanks a bunch! That was spot on. I thought it would solve my CORS issues with pubsub as well but it didn’t work as expected.