Over a million developers have joined DZone.
{{announcement.body}}
{{announcement.title}}

Getting a quota error with Google and you've barely touched your limit?

DZone's Guide to

Getting a quota error with Google and you've barely touched your limit?

· Web Dev Zone ·
Free Resource

Discover how you can help protect your mobile, web-based and cloud applications with IBM Application Security on Cloud.

I spent the last 30 minutes or so trying to figure out why in the heck my simple Google Maps demo was giving me this error in the console:

This site has exceeded its usage quota for Google Maps JavaScript API v3. See here for details on usage limits: https://developers.google.com/maps/documentation/javascript/usage

The "site" in question was localhost and I knew I was nowhere near my 25,000 daily limit. In fact, the Google API Console reported 44 hits over the past 30 days. To make things even more maddening, when I intentionally included a bad API key I got the exact same error.

Turns out I had forgotten to enable Google Maps V3. This is done in the "Services" menu:

You must turn on API access on the relevant line:

Obvious, right? I just wish the console message had been actually helpful.


Rapidly detect security vulnerabilities in your web, mobile and desktop applications with IBM Application Security on Cloud. Register for your complimentary 30-day trial now.

Topics:

Published at DZone with permission of

Opinions expressed by DZone contributors are their own.

{{ parent.title || parent.header.title}}

{{ parent.tldr }}

{{ parent.urlSource.name }}