Gateway Error Response from Lightsail Container

0

I'm running a flask container on AWS Lightsail. The container runs fine when running locally. However, when I send a request to one of the endpoints, I get a 504 status code response from my client. When I checked the container logs on Lightsail, I can see that the request was successful (status code 200) like so:

[13/Jan/2022:13:02:29] 172.26.23.25 - - [13/Jan/2022 13:02:29] "POST /mosaicapi/v1/cubepdf/2 HTTP/1.1" 200 -

My container capacity is small (1GB RAM, 0.5vCPUs) with a scale of 1 @15USD/month. This is my first time deploying a container on AWS, so I don't know how to go about resolving the issue.

已提问 2 年前292 查看次数
1 回答
0

Is the issue you're seeing persistent?

Sometimes 504s occur before your first deployment succeeds. After you have a successful deployment, you shouldn't see such errors again unless they're originating from your app itself.

AWS
Alex
已回答 2 年前

您未登录。 登录 发布回答。

一个好的回答可以清楚地解答问题和提供建设性反馈,并能促进提问者的职业发展。

回答问题的准则