We have an elasticbeanstalk application that runs an api. Now the requests to the API frequently expected to take tens of seconds to be satisfied. I used to get an http 504 Gateway_Timeout for the requests after 60s of sending the requests.
So I set the 'Idle timeout' of the load balancer to 1800s.
Now I get an http 502 Proxy Error after 60s:
How do I fix it so that even if requests take longer than 60s I do not get an http 500 error?
Any advise is appreciated. Thank you.