Open gkwan-ibm opened 3 years ago
We can open issue to SN network if it need to fix something.
The problem is starting from SN. https://accountname-9080.theiadocker-1.proxy.cognitiveclass.ai/openapi/ui
starts by https
, it forwards to http://localhost:9080/...
, and the orderCoffee
endpoint use uriInfo
to construct an URI to call another endpoint. That produced the scheme to be https,http,http
and exception.
Phu gave us a workaround by setting <webContainer trusted="false"/>
to the coffee-shop server.xml.
@pmd1nh @andymc12 you can keep this issue to fix the code to throw 400 instead of 500 error. Or, you can close this issue.
Thanks
To reproduce the problem:
https://accountname-9080.theiadocker-1.proxy.cognitiveclass.ai/openapi/ui