Posted on July 24, 2023 by alanysiu
Caveat I’m not a Google Cloud Platform expert, and this isn’t a tutorial. I’m just hoping that if people run into the same errors I ran into and search for those exact error messages, that they’ll find this blog post, and maybe it’ll be helpful to them. What I found Making the connection Google’s documentation on connecting a Cloud Function to Cloud SQL isn’t super straightforward. When I tried to implement their examples, I came across all sorts of errors like: sqlalchemy.exc.InterfaceError: (pg8000.exceptions.InterfaceError) communication error (Background on this error at: https://sqlalche.me/e/20/rvf5) or File "/workspace/main.py", line 58, in postgres_connect sqlalchemy.engine.url.URL.create(AttributeError: type