Blocked IP for Google Cloud Function Node.js App


#1

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’ }

Thanks,
Emily Carlsen


#2

… 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).


#3

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:


#4

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


#5

Yes we are definitely using the paid plan.