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

can't connect to daemon #634

Closed
kiahmed opened this issue Mar 3, 2018 · 6 comments
Closed

can't connect to daemon #634

kiahmed opened this issue Mar 3, 2018 · 6 comments

Comments

@kiahmed
Copy link

kiahmed commented Mar 3, 2018

configured everything right daemon is running with api, gateway and swarm .still can't connect from locally get this error always
capture

@hacdias
Copy link
Member

hacdias commented Mar 3, 2018

Did you set API.HTTPHeaders with the correct values on your IPFS repo?

@kiahmed
Copy link
Author

kiahmed commented Mar 3, 2018

yup..here it looks like

"HTTPHeaders": {
  "Access-Control-Allow-Credentials": ["true"],
  "Access-Control-Allow-Headers": [
    "X-Requested-With",
    "Range"
  ],
  "Access-Control-Allow-Methods": [
    "GET","PUT","POST"
  ],
  "Access-Control-Allow-Origin": ["*"]      
},

@hacdias
Copy link
Member

hacdias commented Mar 3, 2018

Are you running the API on the same host and port as you're accessing the WebUI?

@kiahmed
Copy link
Author

kiahmed commented Mar 3, 2018

yup, where in webui project I see if its connection to right host/port? assume it tries with default localhost 5001?

@kiahmed
Copy link
Author

kiahmed commented Mar 3, 2018

well, i guess its solved by simply clicking http://localhost:5001/webui and it works. why we need to deploy webui separately on port 3000 then?

@hacdias
Copy link
Member

hacdias commented Mar 3, 2018

The port 3000 is only for development purposes or to run the latest version from this repository. If you just want to access the latest published version, you just need to follow the link you mentioned. 😄

Can we close this?

@kiahmed kiahmed closed this as completed Mar 3, 2018
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