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

JSON parse error #13

Open
ghost opened this issue Apr 28, 2015 · 1 comment
Open

JSON parse error #13

ghost opened this issue Apr 28, 2015 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 28, 2015

After sending HTTP GET request to my local cluster on port 4001 (http://127.0.0.1:4001/v2/keys/), parsing successful response (200 OK) fails with SyntaxError JSON.parse: unexpected end of data at line 1 column 1 of the JSON data error.

Doing the exact same operation with curl http://127.0.0.1:4001/v2/keys/ returns valid JSON format: {"action":"get","node":{"dir":true}}

etcd-browser reports an error: Request failed - - http://127.0.0.1:4001/v2/keys/

etcd-browser version: latest master
etcd version: etcd-io/etcd@f077092

What firefox outputs: http://a.pomf.se/rhijlp.png
What wireshark captures: http://a.pomf.se/drsqsz.png

@nov1n
Copy link

nov1n commented May 3, 2016

Hey ghost, I had the same problem, try adding --net="host" and setting the environment variable ETCD_HOST=127.0.0.1 leading to the following docker command:

sudo docker run --rm --name etcd-browser --net="host" -p 0.0.0.0:8000:8000 --env ETCD_HOST=127.0.0.1 --env -t -i etcd-browser

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

1 participant