apisix
apisix copied to clipboard
bug: fail to fetch data from etcd
APISIX version: 2.0
etcd version: 3.4.3
not enabled any auth for etcd instance.
error log:
config_etcd.lua:428: failed to fetch data from etcd: insufficient credentials code: 401, etcd key: /apisix/upstreams
but we can fetch data in this way:
etcdctl get --prefix apisix
please make sure auth enable successfully, if so , cli command should be:
$ etcdctl get --prefix /apisix --user user:pwd
And make sure ETCD config for APISIX is correct,
Check your APISIX configuration, whether the user and password of etcd is enabled.
the user is using Mac OS, so I think we can close this PR at first.
missing make init or apisix init step