-
Notifications
You must be signed in to change notification settings - Fork 298
examples/bundle-browserify fails when submitting data #972
Comments
Not sure I understand - where are you seeing that error? Can you tell me what IPFS node are you talking to (js-ipfs or go-ipfs) and what's in your IPFS config for Looking at the code for that example, I would guess you've spawned a JS IPFS node and the IPFS client is trying to connect to the API on 5001, but JS IPFS runs it's API on 5002 currently. If that's it, the example just needs to be updated to try to fallback to 5002. |
The real solution is for JS IPFS to use the same ports as go-ipfs ipfs/js-ipfs#1563 |
I use go-ipfs. I also face the same issue. I set the configs as given in the example
The error logs in browser are following
at server side the error message is |
I solved it. I made the following change |
This does not solve the problem for me. Any updates on that? |
@elluck91 did you figure it out? Have you setup CORS properly on your IPFS node? https://github.com/ipfs/js-ipfs-http-client#cors |
Closing as I don't believe there's an issue here - this is just CORS configuration on the node that needs to be added/updated. |
Error in the browser console:
13:11:21.276 ipfs add error Error: "Server responded with 405"
parseError http://127.0.0.1:8888/bundle.js:69499
onRes http://127.0.0.1:8888/bundle.js:69529
emit http://127.0.0.1:8888/bundle.js:3508
_connect http://127.0.0.1:8888/bundle.js:24929
_onFinish http://127.0.0.1:8888/bundle.js:24914
undefined bundle.js:13:22
Error from node:
[Tue Apr 16 2019 13:11:21 GMT-0700 (Pacific Daylight Time)] "POST /api/v0/add?stream-channels=true" Error (404): "Not found"
The text was updated successfully, but these errors were encountered: