-
Notifications
You must be signed in to change notification settings - Fork 32
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Strange behaviour without IPFS Companion #22
Comments
@fsdiogo I am not sure if I reproduced the same error 🙃 , but adding multiple files worked for me until I hit this known problem with go-ipfs+js-ipfs-api. UI froze at this state (I can't remove greyed one): You can try reproducing it by adding multiple files and then upload-multiple-files-via-browser-ipfs-api-bug-demo.zip (this .zip triggered the go-ipfs big for me, but due to the nature of the bug it may not work the same on every machine). As you can read in https://github.com/ipfs/js-ipfs-api/issues/797#issuecomment-401469158 there is no known workaround for HTML context. The only thing we can do is to count input arguments and detect if You can add error handling in the app, but in the long run we probably should fix this upstream in js-ipfs-api ((https://github.com/ipfs/js-ipfs-api/issues/797) PS. It probably worked with Companion because WebExtension has more powerful APIs than HTML JS and applies a fix for |
@lidel You are right, I was focusing on the share link because it was the last step that seemed to be broken, but it doesn't generate a new one because of the API problem you mentioned! Well, that sucks and takes too much fun of this app, so I would say to use Companion until the bug is solved. What do you think? PS: The UI isn't frozen in that state, that 'x' is not clickable, although in v1.1 I'll add the ability to remove those files. |
AFAIK we can't fix it from the app itself: website's JS can't set See the PR for more details. |
@lidel can we close this? |
Yup, this is no longer relevant as we deprecated |
When using the app with IPFS Companion everything works great 🌟
But a simple app like this should require the minimum amount of setup, that being said it should work out-of-the-box with just an IPFS daemon running.
Something strange is happening. Steps to reproduce:
The problem should come from this func:
ipfs-share-files/src/lib/files.js
Lines 47 to 56 in 3d8c417
I can't understand why it works with Companion & it works the first time the func is called, it generates the share link. But when calling again it hangs. It also happens if you try to upload multiple files the first time, I think there is something wrong when creating the new
unixfs-dir
and/or adding links to it.Ideas? @ipfs-shipyard/gui
The text was updated successfully, but these errors were encountered: