Get hands-on experience with 20+ free Google Cloud products and $300 in free credit for new customers.

Cloud Function randomly errors due to fetch abort

I have a node.JS function deployed with node v20. My API calls fails with the following error and then the whole cloud function terminates.

vishals9711_0-1718123171570.png

And this happens for maybe 1 out of 10 calls , usually noticed when when function is being idle for long time.
Config :
Memory allocated: 2 GiB
CPU: 1
Timeout : 180 seconds
Min Instances : 1
Max : 3

0 1 176
1 REPLY 1

I changed the http client to use axios and I still see a similar error.

vishals9711_0-1718717164986.png

 

Top Solution Authors