I am calling the following API as part of the self-study course:
GET /flights HTTP/1.1
Host: training4americanapi.cloudhub.io
client_id: d1374b15c6864c3682ddbed2a247a826
client_secret: 4a87fe7e2e43488c927372AEF981F066
I am getting a bad gateway error:
502 Bad Gateway.
We couldn't find any Cloudhub application listening on this API.
Check your port.
Ensure that you have entered ${http.port} for the port, or ${https.port} if you're using HTTPS.
Check your host.
Check to ensure that you're listening for requests on 0.0.0.0
1 risposta
Hi @Lewis Webb,
You're just missing a couple hyphens. The host name should be: training4-american-api.cloudhub.io