-
Notifications
You must be signed in to change notification settings - Fork 1.2k
IPFS node.on('start') not working correctly in Chrome #915
Comments
Could you put a reproducible snippet here so we can try out? Also, listen for any errors and console.log them, include them here if they appear. |
This the code I am running. No errors are thrown. I have the console.log in the transfer to see if the code is hitting node.on('start'). All messages are output in Firefox, while just the first two console.log are outputted in Chrome, which is why I believe it to be an issue in node('start') on Chrome. |
Could you add this as well, to see if there is any errors: node.on('error', (err) => {console.log(err)}) |
So Short URL leads to: https://www.chromium.org/Home/chromium-security/prefer-secure-origins-for-powerful-new-features But I'm not sure what feature in js-ipfs or yjs / y-ipfs-connector that triggers this. From what URL are you running your example? Localhost? |
I am running my example from a server that I am accessing via SSH. I added the IP address of the server to the gateway portion of the IPFS config in addition to localhost. |
I ran into this issue just now. Worked fine on Firefox, but not on Chrome. I think that Chrome considers your IPFS node's endpoint to be an insecure origin. |
Thanks for the precious insight @kareniel :) @EthanHaley still hitting this issue? |
@EthanHaley closing, let us know if you still see this problem. |
I'm currently trying to run some of the examples available for IPFS, however the IPFS nodes don't seem to properly start in Chrome. I've tried both the transfer-files from this repo and the collaborative editing demo (https://github.com./ipfs-shipyard/shared-editing-demo) and in both cases the nodes start and demos work in Firefox, however trying to load them in Chrome produces no results. For transfer-files it just hangs on start, and the collaborative editing just leaves you typing in your own little text area in Chrome. Firefox nodes properly talk to each other and function as expected, however Chrome nodes don't talk to other Chrome nodes or Firefox nodes. It seems like a bug coming from Chrome but I'm not sure what is causing it exactly. Any information to help with this would be greatly appreciated.
The text was updated successfully, but these errors were encountered: