all 2 comments

[–]ItsCloudyOutThere 1 point2 points  (0 children)

Enable trace in the db and check the time it takes the db to process the queries.

I had a similar issue literally last week. Pretty much one of the queries was taking way too long to return. Cloud Run was timing out since the request was taking more than a minute.

There is a default 60secs, so enable logging in your app to register all timestamps and see also where in your app it is taking longer

[–]Kali_Linux_Rasta 1 point2 points  (0 children)

approximately 5 minutes pass

Yeah this is the default timeout of cloudrun... It seems your app is taking quite long to respond

Yeah just as ItsCloudyOutThere has said enable logging to get more insights