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

Issues with Cloud Functions Connecting to External REST API

Good afternoon, community!

I'm facing issues with all my Cloud Functions, and I hope someone can help me find a solution.

I had 9 functions running on Google Cloud that fetched data from an external REST API and inserted it into BigQuery. Everything was working fine, but starting from the morning of January 8th, 2025, they began failing one by one, even though I haven't made any changes to them.

Current situation:

  • All functions use HTTP GET requests to connect to an external API.
  • I tested the APIs from other machines, and they work perfectly, so the issue seems to be related to Google Cloud.
  • I don't use a VPC; the connections are made directly via HTTP GET.

Error connecting to API: HTTPConnectionPool(host='kikakau114539.protheus.cloudtotvs.com.br', port=4050): Max retries exceeded with url: /rest/sa1clientes/consultar/clientes?codCliIni=000001&codCliFim=000001 (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x3e54aed0c7c0>: Failed to establish a new connection: [Errno 110] Connection timed out'))

I've tried various approaches to resolve the issue, but nothing has worked so far.

Has anyone encountered a similar issue or has any idea what could be causing this?

Thanks in advance for your help!

 

0 0 232
0 REPLIES 0