Open hsluoyz opened 8 years ago
i got same response.
@hsluoyz @wbwangk Might be an issue with Access-Control-Allow-Origin See if this happens:
There're many chrome extensions to solve this, such as ForceCORS
I believe if you use Docker version of etcd browser, this won't happen.
me to seeing something similar on my mac w/ request failed. needs more debug logs (connection refused? client error?). curl http://127.0.0.1:2379/v2/keys
works for me, but the client running locally doesnt
@henszey Anybody here still?
etcd has released v3 for some time now, does this browser still work for etcd v3?
I faced same issue even though I run through docker image.
I got below error when I see logs of the etcd-brower docker image.
root@ubuntu:~# docker logs -f etcd-browser proxy /api requests to etcd on 183.110.81.176:4001 etc-browser listening on port 8000
events.js:72 throw er; // Unhandled 'error' event ^ Error: connect ECONNREFUSED at errnoException (net.js:901:11) at Object.afterConnect [as oncomplete] (net.js:892:19)
Chrome doesn't allow to use cross-domain for localhost
+1
how to resolve this problem ?
thank you @xh4n3.
my env: docker-machine: 192.168.99.100 etcd0 192.168.99.101 etcd1 192.168.99.102 etcd2
and run etcd-browser:
docker run -d -it --name etcd-browser -p 12345:8000 --env ETCD_HOST=192.168.99.100 --env ETCD_PORT=4001 etcd-browser
I insalled ForceCORS and resolve this problem. here is my setting list:
setting for: http://192.168.99.100:4001/*
header name | header value |
---|---|
Access-Control-Allow-Origin | * |
Access-Control-Allow-Methods | * |
To resolve this question (Request failed 404),you should edit server.js add to the values of ca_file、key_file、cert_file.such as var ca_file = process.env.ETCDCTL_CA_FILE || '/etc/kubernetes/pki/etcd/ca.crt'; var key_file = process.env.ETCDCTL_KEY_FILE || '/etc/kubernetes/pki/etcd/server.key'; var cert_file = process.env.ETCDCTL_CERT_FILE || '/etc/kubernetes/pki/etcd/server.crt';
Hi.
I have an etcd 2.3.1 cluster with Kubernetes 1.2.4 on my Ubuntu 14.04 x64 VM.
Here's the status:
Then I browsed to
http://henszey.github.io/etcd-browser/
in this VM's firefox, enteredhttp://192.168.134.129:4001
and clickGo!
. It gave me:Request failed - - http://192.168.134.129:4001/v2/keys/
But when I opened the
http://192.168.134.129:4001/v2/keys/
address in another tab of my Firefox, it shows normally:So I wonder where it's wrong? Thanks!