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
Describe the bug
Once adding said CID, the files page becomes blank each time you open it. You must hit the back button and refresh the page to make it go away. I tried removing all pins, garbage collecting the local repo, and destroying all local browser data. Only nuking the whole data directory for IPFS seems to make it go back to normal.
To Reproduce
Steps to reproduce the behavior:
Run echo '{ "Data": "abc" }' | ipfs object put. This should output QmXg9Pp2ytZ14xgmQjYEiHjVjMFXzCVVEcRTWJBmLgR39V.
Click on the Files tab, click "Import", click "From IPFS", enter this CID.
The screen will now become blank and you will never be able to access the files tab. I recovered only by destroying my node (installed via snap): rm -rf ~/snap/ipfs/common/*
Expected behavior
This shouldn't happen.
Screenshots
It's just a white screen. There are some ambiguous errors in console.
Desktop (please complete the following information):
@KB1RD thank you for filling this, ipfs object API is being deprecated (#7936) in favor of ipfs dag and dag-cbor, consider moving away from using it. Still, this is a bug, and should be fixed.
(moving to go-ipfs, as this is MFS/Object API bug)
I can confirm this is a bug present in go-ipfs 0.9.0-rc1.
Copying problematic DAG to MFS works. ipfs files ls also works, but ipfs ls with direct CID of the parent dir with problematic DAG produces error:
$ echo '{ "Data": "abc" }' | ipfs object put
QmXg9Pp2ytZ14xgmQjYEiHjVjMFXzCVVEcRTWJBmLgR39V
$ ipfs files mkdir /my-dir
$ ipfs files cp /ipfs/QmXg9Pp2ytZ14xgmQjYEiHjVjMFXzCVVEcRTWJBmLgR39V /my-dir/foo
$ ipfs files ls /my-dir
foo
$ ipfs ls $(ipfs files stat --hash /my-dir)
Error: unexpected EOF
Then, it is impossible to remove the object, it seems:
$ ipfs files rm /my-dir/foo
Error: unexpected EOF
lidel
changed the title
Adding CID generated with ipfs object put crashes webapp
CID generated with ipfs object put crashes ipfs files rmMay 18, 2021
Describe the bug
Once adding said CID, the files page becomes blank each time you open it. You must hit the back button and refresh the page to make it go away. I tried removing all pins, garbage collecting the local repo, and destroying all local browser data. Only nuking the whole data directory for IPFS seems to make it go back to normal.
To Reproduce
Steps to reproduce the behavior:
echo '{ "Data": "abc" }' | ipfs object put
. This should outputQmXg9Pp2ytZ14xgmQjYEiHjVjMFXzCVVEcRTWJBmLgR39V
.rm -rf ~/snap/ipfs/common/*
Expected behavior
This shouldn't happen.
Screenshots
It's just a white screen. There are some ambiguous errors in console.
Desktop (please complete the following information):
apt
)Smartphone (please complete the following information):
N/A
Additional context
IPFS at latest Snap version.
The text was updated successfully, but these errors were encountered: