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.
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
I changed the http client to use axios and I still see a similar error.