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

Cloud Functions (gen 1) not able to connect to Cloud SQL (Postgres) + List of CF not loading

Magg
New Member

For some reason and seemingly out of the blue our Clouf Functions are not able to connect to the Cloud SQL database.

Getting this in the logs:
```
Cloud SQL connection failed. Please see https://cloud.google.com/sql/docs/mysql/connect-functions for additional details: googleapi: got HTTP response code 429 with body: [lots of html] We're sorry...... but your computer or network may be sending automated queries. To protect our users, we can't process your request right now.
```

And loads of 
```
Error: connect ECONNREFUSED /cloudsql/<PROJECT>:us-central1:apiv6/.s.PGSQL.5432
```

When trying to debug, the list of gen1 functions doesn't even load when accessed at https://console.cloud.google.com/functions/list

I've checked the database itself and it's fine. Not loaded and very few connections.

Anyone else seeing the same?

0 0 145
0 REPLIES 0
Top Solution Authors