-
Notifications
You must be signed in to change notification settings - Fork 1.2k
ipfs.dag.get broken #3689
Comments
FWIW on my end (version checked /w |
So it happend somewhere between 0.5.4 and 0.6 |
In the Changelog for 0.55.0 it states: |
@TheDiscordian I was wondering, whether there was any update on this issue? |
Faced similar issueThis code works in v0.54.4: // cid = "bafyreihy62eeywxxp5mvwy7y6wddcnpopulnqsuurk2pwnlow7fj3aql6m"
await ipfsNode.dag.get(cid); In v0.55.2 it produces error with a following traceback (CRA fallback screen) I can fix this by passing instance of CID instead of a raw string: // cid = "bafyreihy62eeywxxp5mvwy7y6wddcnpopulnqsuurk2pwnlow7fj3aql6m"
await ipfsNode.dag.get(new CID(cid)); |
Ok, i see now it was intentional change to accept only instances of CID in |
Yes. But that does not mean it was the right decision. |
Really glad this was raised and answered. Would love to be able to further understand this relationship with IPFS. I saw in the tutorial a note of 'These are all stored in the global IPFS network so you can find any piece by visiting a public gateway such as ipfs.io and adding the IPFS multiaddress to the end of the URL' With the use of get(new CID) rather than raw get(cid), I get a hash of 'null' in the payload, does anyone know if there's a way to interact with IPFS addresses with any other part of the payload or why the value is null, anything I can do about this? |
Ack, this changed long time ago – In the future, when in doubt, refer JS API docs at: |
dag
Severity: Critical
Description:
I executed this line:
And got this error:
Steps to reproduce the error:
Install v0.55.1 or higher of
ipfs
from npm and execute the line above.The text was updated successfully, but these errors were encountered: