Skip to content
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

runtime error when init #121

Open
beenotung opened this issue Dec 7, 2017 · 2 comments
Open

runtime error when init #121

beenotung opened this issue Dec 7, 2017 · 2 comments

Comments

@beenotung
Copy link

beenotung commented Dec 7, 2017

Not working in Brave (cors issue).
Not working in Firefox (attached console log).
console-log.txt

(I was using this url: http://127.0.0.1:8080/ipfs/QmTvGbPiS1PaE7AAn4gEszNiYMgdrbMXwLkGnLKYSADs8K/#QmSS3dUE5oKdyDNvpGsYCXgm2mBW4fSDzC5B3NDf7DR8VR which I got from ZeroNet)

@victorb
Copy link
Owner

victorb commented Dec 7, 2017

Hm, no bueno. It's trying to use the API but is not allowed because of CORS. You'll need to whitelist the URL in your IPFS daemon, to allow ipfsbin to be able to access your daemon.

If you set API_ORIGIN environment variable before starting the daemon, to the value http://127.0.0.1:8080/ipfs/QmTvGbPiS1PaE7AAn4gEszNiYMgdrbMXwLkGnLKYSADs8K it should work alright.

Let me know if it doesn't.

Btw, ipfsbin is not really much maintained anymore, and there are better alternatives both in terms of functionality and maintenance. I would recommend trying out either hardbin or ipfessay:

@beenotung
Copy link
Author

beenotung commented Dec 7, 2017

Maybe I get your meaning wrongly, I tried to run below but same problem:

ipfs shutdown
API_ORIGIN="http://127.0.0.1:8080/ipfs/QmTvGbPiS1PaE7AAn4gEszNiYMgdrbMXwLkGnLKYSADs8K" ipfs daemon

I also tried in Chrome with CORS enabled, attached to screenshot on the console:
1

By the way, I tried hardbin, it works for me. Thanks for suggesting it.
I also created a shortcut to hardbin https://hardbin.surge.sh

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants