souzens edited a comment on issue #2695:
URL: https://github.com/apache/apisix/issues/2695#issuecomment-725324569
the same wrong
can't work now on 2.0 apisix
use k8s & apache/apisix:latest docker image
but apisix-dashboard 2.0rc3 works well
./etcd --version
etcd Version: 3.4.13
Git SHA: ae9734ed2
Go Version: go1.12.17
Go OS/Arch: linux/amd64
```
./etcdctl --endpoints=10.111.9.154:2379 get --prefix "/apisix"
/apisix/routes/328088132001988967
{"id":"328088132001988967","create_time":1605085365,"update_time":1605086330,"uris":["/*"],"name":"test-pre","methods":["GET","HEAD","POST","PUT","DELETE","OPTIONS","PATCH"],"hosts":["venice.test-pre.com"],"vars":[],"upstream":{"nodes":[{"host":"venice.test-pre.svc.cluster.local","port":80,"weight":1}],"timeout":{"connect":6000,"read":6000,"send":6000},"type":"roundrobin"}}```
/usr/local/apisix $ curl
http://127.0.0.1:9080/apisix/admin/routes/328088132001988967 -H 'X-AP
I-KEY: edd1c9f034335f136f87ad84b625c8f1'
<html>
<head><title>500 Internal Server Error</title></head>
<body>
<center><h1>500 Internal Server Error</h1></center>
<hr><center>openresty</center>
</body>
</html>
/usr/local/apisix/logs $ tail -n 10 error.log
2020/11/11 17:57:00 [error] 26#26: *223005 [lua] config_etcd.lua:428: failed
to fetch data from etcd: failed to read etcd dir, etcd key: /apisix/routes,
context: ngx.timer
2020/11/11 17:57:07 [error] 32#32: *226586 lua entry thread aborted: runtime
error: /usr/local/apisix/apisix/core/etcd.lua:80: attempt to index field 'body'
(a nil value)
stack traceback:
coroutine 0:
/usr/local/apisix/apisix/core/etcd.lua: in function 'get'
/usr/local/apisix/apisix/admin/routes.lua:166: in function
</usr/local/apisix/apisix/admin/routes.lua:160>
/usr/local/apisix/apisix/admin/init.lua:146: in function 'handler'
/usr/local/apisix//deps/share/lua/5.1/resty/radixtree.lua:730: in
function 'dispatch'
/usr/local/apisix/apisix/init.lua:754: in function 'http_admin'
content_by_lua(nginx.conf:148):2: in main chunk, client: 127.0.0.1,
server: , request: "GET /apisix/admin/routes/328088132001988967 HTTP/1.1",
host: "127.0.0.1:9080"```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]