Blocked IP for Google Cloud Function Node.js App


I have an app written on Google Cloud Functions that makes a call to a twitter rest api via the node-twitter library. It works fine on my local machine but fails on GCF. Is it possibly due to a blocked IP?

Fails with error: { Error: read ECONNRESET at exports._errnoException (util.js:1020:11) at TLSWrap.onread (net.js:568:26) code: ‘ECONNRESET’, errno: ‘ECONNRESET’, syscall: ‘read’ }

Emily Carlsen


… it could be, but it is really difficult to say. Given the error is in TLS I wonder if the library / GCF is using a valid level of TLS to connect? (I doubt that GCF would not be up-to-date there, but it seems like a possible pointer).


So there’s no easy way to check if IP is blocked? I’m not even sure what GCF IP so I guess that does complicate matters :confused:


Is your Google Cloud Functions project on a paid plan? They can’t make HTTP requests outside of Google on the free plan.


Yes we are definitely using the paid plan.