In my previous post, I wanted to modify host header and call a target endpoint. Achieved it creating a custom plugin.
https://www.googlecloudcommunity.com/gc/Apigee/Follow-up-question-on-setting-Host-header-in-APIGee-m...
Now the challenge what I am facing is I am able to get success response using wget target endpoint is below.
wget -S -O - --header 'Host: nginx.local' http://istio-ingressgateway.cluster.local
Connecting to istio-ingressgateway.gvillain-istio.svc.cluster.local (10.2xx.xxx.xxx:80)
HTTP/1.1 200 OK
Micro-gateway also does the same operation, update host header to ingress controller and call target endpoint but receiving 502 bad gateway error
API Response:
{"message":"getaddrinfo ENOTFOUND nginx.local nginx.amadeus.local:80","errno":"ENOTFOUND","code":"ENOTFOUND","syscall":"getaddrinfo","hostname":"nginx.local","host":"nginx.local","port":80}
Logs:
1686079470910 error m=GET, u=/hello, h=istio.anz.tst-ne.az.amadeus.net, r=::ffff:10.xxx.xx.xx:36776, s=502, name=Error, message=getaddrinfo ENOTFOUND nginx.local nginx.local:80, code=ENOTFOUND, stack=Error: getaddrinfo ENOTFOUND nginx.local nginx.local:80
at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:67:26)
Can you please help with this issue ?
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |