etcd icon indicating copy to clipboard operation
etcd copied to clipboard

v3 api returns 404 when use etcd grpc proxy

Open paperqqq opened this issue 3 years ago • 3 comments
trafficstars

What happened?

etcd Version: 3.5.0 Go Version: go1.12.9 Go OS/Arch: linux/amd64

1、when I start etcd grpc proxy, I use etcdctl ./etcdctl --endpoints=http://162.166.93.222:30380 put abc 123 returns OK 2、However, when I start etcd with a config file (yml) which is empty, it started normally, but /v3/kv/put returns 404: curl -X POST http://localhost:23790/v3/kv/put 404 page not found 3、In addition, other v3 api also returns 404

What did you expect to happen?

curl -X POST http://localhost:23790/v3/kv/put return success

How can we reproduce it (as minimally and precisely as possible)?

start etcd and etcd proxy ,then use v3 api

Anything else we need to know?

No response

Etcd version (please run commands below)

$ etcd --version
# paste output here

$ etcdctl version
# paste output here

Etcd configuration (command line flags or environment variables)

paste your configuration here

Etcd debug information (please run commands blow, feel free to obfuscate the IP address or FQDN in the output)

$ etcdctl member list -w table
# paste output here

$ etcdctl --endpoints=<member list> endpoint status -w table
# paste output here

Relevant log output

No response

paperqqq avatar Mar 29 '22 12:03 paperqqq

Hi @paperqqq can you be more specific with what you are posting. I see the POST curl, but without any data being posted.

dsouzadyn avatar Apr 01 '22 13:04 dsouzadyn

Hi @paperqqq can you be more specific with what you are posting. I see the POST curl, but without any data being posted.

curl -X POST http://localhost:23790/v3/kv/put -d '{"key": "Zm9v", "value": "YmFy"}' return 404 page not found. Is the Etcd Grpc Proxy HTTP listening only to these URIs? image

paperqqq avatar Apr 02 '22 06:04 paperqqq

This issue has been automatically marked as stale because it has not had recent activity. It will be closed after 21 days if no further activity occurs. Thank you for your contributions.

stale[bot] avatar Jul 10 '22 13:07 stale[bot]