amesh icon indicating copy to clipboard operation
amesh copied to clipboard

Error reporting when accessing non-grid services

Open ti-yoyo opened this issue 3 years ago • 1 comments

When accessing non-service grid services in the sidecar proxy container of the apisix application, a 503 gateway is prompted, such as Baidu

ti-yoyo avatar Nov 30 '22 09:11 ti-yoyo

kubectl exec -it ratings-v1-679fc7b4f-9zglr bash kubectl exec [POD] [COMMAND] is DEPRECATED and will be removed in a future version. Use kubectl kubectl exec [POD] -- [COMMAND] instead. Defaulting container name to ratings. Use 'kubectl describe pod/ratings-v1-679fc7b4f-9zglr -n default' to see all of the containers in this pod.

node@ratings-v1-679fc7b4f-9zglr:/opt/microservices$ node@ratings-v1-679fc7b4f-9zglr:/opt/microservices$ curl www.baidu.com

502 Bad Gateway

502 Bad Gateway


openresty
node@ratings-v1-679fc7b4f-9zglr:/opt/microservices$ curl https://www.baidu.com curl: (77) error setting certificate verify locations: CAfile: /etc/ssl/certs/ca-certificates.crt CApath: /etc/ssl/certs

ti-yoyo avatar Nov 30 '22 09:11 ti-yoyo