You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please hold off on using ipfs-repo@2.x.x with ipfs until ipfs/js-ipfs#2932 is merged & released.
The ipfs-block module was renamed ipld-block but because they export classes the modules are not compatible. The PR above will bring ipld-block compatibility to ipfs and then you'll be able to upgrade to ipfs-repo@2.x.x.
I am getting this error when creating a new repo.
(node:1824) UnhandledPromiseRejectionWarning: Error: invalid block
This is how I am constructing the repo I then pass it into IPFS-js then the error happens
repo = new ipfsRepo('localIPFSDirectory');
Upon further investigation. I noticed that
![image](https://user-images.githubusercontent.com/26752423/79799882-139d1b00-8310-11ea-97b6-410f11aa84d5.png)
![image](https://user-images.githubusercontent.com/26752423/79799917-231c6400-8310-11ea-9c2f-185b4557270f.png)
isBlock
method is looking for ipld blockbut my object is an ipfs block
I am not sure what the cause of the issue is, but it happens when I use ipfs-repo.
ipfs-repo version: "ipfs-repo": "2.0.0"
ipfs version: "ipfs": "0.42.0"
The text was updated successfully, but these errors were encountered: