I have a flask API container deployed on Lightsail. When I make a request to one of the API endpoints, I get a 504 gateway error as the status on the client-side. However, when I check the server logs on Lightsail, I see that the server returned data successfully with status code 200.
I'd like to ask for suggestions regarding what might have gone wrong on the server as everything runs fine when the container is run locally.