You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by GitBox <gi...@apache.org> on 2021/09/13 12:10:02 UTC

[GitHub] [apisix-ingress-controller] Donghui0 commented on issue #663: request help: failed to list upstreams in APISIX: unexpected non-empty object

Donghui0 commented on issue #663:
URL: https://github.com/apache/apisix-ingress-controller/issues/663#issuecomment-918127808


   @riskgod It should be the format of Upstream.nodes is wrong.
   Wrong format:
   {"1.1.1.1:8080": 1, "2.2.2.2:8080": 1}
   Correct format:
   [{"host": "1.1.1.1", "port": 8080, "weight": 100, "priority": 0}]
   
   Use the following command to query:
   curl http://apisix-admin:9180/apisix/admin/upstreams -H "X-API-KEY: secretKey"  | python -m json.tool
   


-- 
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.

To unsubscribe, e-mail: notifications-unsubscribe@apisix.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org