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.

preguntada hace 2 años292 visualizaciones
1 Respuesta
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
respondido hace 2 años

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas