Why Do I Get Random 403 Errors When Making API Calls with Google Scripts?

Overview:

Sometimes when trying to run a script that makes calls to our API with the Google Scripts service, random 403 errors may be thrown. This is actually expected behavior as it comes from our Cloud Protection Service.

 

Why Does This Happen?

The 403s coming from Google Scripts are stemming from our CloudFront DDoS protections. This is because there have been/are people that use Google Cloud services for activities that put some of Google's IPs on AWS' reputation lists. This means that the CloudFront service automatically blocks some of the Google Services IPs.

 

What Can I Do?

Ultimately, we have to weigh the balance of the protections to our system with the potential false positives that may get caught. Going forward, we would have to recommend running your scripts locally as opposed to through the Google Scripts service, as this issue will continue there.

 

Additional Resources: 

Was this article helpful?
1 out of 1 found this helpful

Comments

0 comments

Article is closed for comments.