apisix-ingress-controller icon indicating copy to clipboard operation
apisix-ingress-controller copied to clipboard

bug: failed to list routes: Get http://apisix-admin:9180/apisix/admin/routes: context canceled

Open 651016236 opened this issue 4 years ago • 9 comments

Issue description

image

Environment

rancher k3s image

Minimal test code / Steps to reproduce the issue

尝试修改代码可以修复 image

还有一个问题由于stream结构问题,导致json解析失败 error apisix/upstream.go:121 failed to convert upstream item image 这里的结构体是数组,但是返回的json是map image

651016236 avatar Sep 27 '21 07:09 651016236

Welcome to submit a PR to fix it

tao12345666333 avatar Sep 27 '21 07:09 tao12345666333

欢迎提交 PR 修复

好的,我修复提交下

651016236 avatar Sep 27 '21 08:09 651016236

It seems to be a known issue, apisix-ingress must be run after apisix is ​​successfully started. ref: https://github.com/apache/apisix-ingress-controller/pull/660

gxthrj avatar Sep 29 '21 05:09 gxthrj

apisix-ingress-controller:1.2.0 apisix:2.9 image image

Horus-K avatar Sep 30 '21 08:09 Horus-K

同样问题,apisix接口200 apisix-ingress-controller 异常

Horus-K avatar Sep 30 '21 08:09 Horus-K

找到了问题了,我使用了apisix-dashboard 2.8 手动创建了资源,将其删掉后apisix-ingress-controller恢复正常

Horus-K avatar Sep 30 '21 09:09 Horus-K

找到了问题了,我使用了apisix-dashboard 2.8 手动创建了资源,将其删掉后apisix-ingress-controller恢复正常

so what is the reall problem?

xianshun163 avatar Dec 03 '21 05:12 xianshun163

related to https://github.com/apache/apisix-ingress-controller/pull/774

gxthrj avatar Dec 09 '21 08:12 gxthrj

Follow the guide of https://apisix.apache.org/zh/docs/helm-chart/apisix-ingress-controller/ Also throw Get http://apisix-admin:9180/apisix/admin/routes: context canceled Just change https://github.com/apache/apisix-ingress-controller/blob/master/conf/config-default.yaml#L100C12-L100C12 from v2 to v3, and apisix-ingresscontroller works well

liyuan231 avatar Nov 30 '23 03:11 liyuan231