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

Why is my cloud function showing the following error

Screenshot 2022-01-17 at 9.22.19 PM.png

 

I'm just hitting a public endpoint. When I hit it through postman, I don't see any errors but if I hit my cloud functions which hit that public endpoint, then I see those error logs. 

Any idea what the issue could be? 

0 1 220
1 REPLY 1

Cloud Functions by default cannot access the internet, you will need to deploy a VPC Serverless Connector to route outbound access via the VPC and deploy a Cloud NAT to allow the function to access the public endpoint