I have a single page application that uses Google API JS client.
There's also an automated functional test suite for this application written in Java and Selenium that is ran against a test environment every time the app is built. Test suite spawns multiple browsers that more or less simultaneously click through multiple flows of the application.
This often causes Google to return HTTP 403 for the following file:
<script src="https://apis.google.com/js/api.js"></script>
with additional information:
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.
I tried looking into Google API quotas, but they seem to affect only the actual API calls, not the client library itself.
Has anyone encountered a similar issue? We can detect this situation and retry a failed test, but it results in even more calls to apis.google.com and make the tests awfully slow. It's also harder to determine if the test time has increased because of changes in the application or because the GAPI client library failed to load.