Client gets 502 Bad Gateway error while connect to API Gateway endpoint after certain time
Most of the time our client gets 502 Bad Gateway error/takes a long time for the very first request to the API gateway after some time. But we noticed it's working fine from the second request onwards.
So everyday morning our first request getting failed due to this 502 bad gateway error.
Note: We used custom cloud functions (to be used to validate JWT token) and HTTP back-end.
Any help regarding this issue?