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 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南