-
Notifications
You must be signed in to change notification settings - Fork 1.2k
browser/nodejs interop issues #720
Comments
I have the following setup:
I have a browser instance connected to the same star-sig server at 127.0.0.1:9090. I did:
I added "/libp2p-webrtc-star/ip4/127.0.0.1/tcp/9090/ws/ipfs/QmbqtQaNqb7zQcrRGaG5WDPs8swwYM5M8sRQvLmFWMKjV9" I then ran
And in a separate shell:
I get the following error output in the shell that was running the daemon:
Also, after that, trying to restart the daemon, I get the following:
|
@diasdavid was quick to respond on IRC:
This fixes the problem above. Learning: for js-ipfs-nodejs, you need to specify a TCP address too (@diasdavid correct me if I'm wrong) |
This will fix the issue all together libp2p/js-libp2p-mdns#55 :) Thanks for catching that |
You are starting the sig server and the jsipfs gateway on the same ports
|
Ah! Great catch! We should prolly change the default of either one (both currently at port 9090) as it's common to use both in development at the same time. What do you think? |
Sounds wise :) Wanna submit a PR to webrtc-star? |
Changed the http gateway port of the daemon, restarted it. Restarting the browser now gives me the following error:
|
Since this is becoming a log of valuable information. Here goes the answer to that
|
Ok, the issue above was in aegir, we have a custom version of
I am now able to cat a file from js-ipfs (node.js) to js-ipfs (browser) \o/ 🎉 🎆 |
Posting the link to the relevant issues here re. browserify-zlib for reference: browserify/browserify#1672 And the custom lib we use in aegir at the moment is: https://github.com/ipfs/browserify-zlib |
awesome! However, it seems there was a huge missed opportunity of saving time, cat'ing a file in the browser by adding it with js-ipfs cli was a demo built and presented at the last All Hands before Holidays, available here: https://github.com/diasdavid/graph-explorer/tree/feat/fetch-visualize. It would have saved you so much time of debugging these problems (I'm sorry @haadcode), we should have asked ourselves "what is the closest thing that we have done towards this demo" and just to avoid this happens again, for the File Explorer, you can find two prototypes here:
I see that you won't have the time to complete the tutorial part of these demos, but can you outline all the steps and information pieces the demo needs to have so that another person can tackle that? Thank you! |
Ok, seems that all issues have been solved, let's close this one and follow specific bugs on each example: |
As I'm trying to get the interop between js-ipfs browser and js-ipfs node.js version working, I ran into some issues that I'll add here as notes and for discussion to solve them.
The text was updated successfully, but these errors were encountered: