API Gateway 504 timeout

Hi, I am new to GCP and in a recent project, I have configured an API Gateway with a Google cloud function. The function runs just fine in approximately 15 seconds, but the API Gateway give 504 errors roughly 4 out of 5 times. I am trying to understand why out of the documentation, but the only thing I have found is about "cold starts", but they talk about a 3 to 5 seconds delay not errors. Even in the logs it just says "response timeout". 

 

0 0 150
0 REPLIES 0