2 months ago
Hello, can you help me with this please?
I've deployed a FastAPI service but haven't been able to make HTTP calls to it. I always get a 502 Bad Gateway error.
I make the HTTP call from my web application, since I have that domain allowed for CORS ORIGINS, but I still get the CORS ORIGINS error along with the 502 Bad Gateway error.
5 Replies
2 months ago
Hey there! We've found the following might help you get unblocked faster:
If you find the answer from one of these, please let us know by solving the thread!
2 months ago
Can you please check you are exposing the app to the port 8080?
If you want to use another port please update the port in setting -> public network and redeploy the service
fra
Can you please check you are exposing the app to the port 8080?If you want to use another port please update the port in setting -> public network and redeploy the service
2 months ago
Well, the logs of the service says that it is deployed on port 8080
The PROCFILE is also defined with that port
Attachments
2 months ago
Are you able to send requests directly to the api with curl or postman?
Is your app sending requests using the public URL?
2 months ago
I already resolve my problem changing the port in this part in settings
Thanks for help
Attachments
Status changed to Solved brody • about 2 months ago
Status changed to Open brody • about 2 months ago
Status changed to Solved brody • about 2 months ago