我突然收到一些随机消息,提示“Google 已停用 Maps API”和“网站已超出每日配额”。附图(印度尼西亚语)。
在控制台 API 中,配额状态仍为绿色。这件事是从三天前开始的。什么会导致这个?
我使用的是 Google Maps API for Javascript 版本 3.17。
最佳答案
看起来这是 Google 的一个错误:Intermittent Google maps api Authorization Error https://code.google.com/p/gmaps-api-issues/issues/detail?id=7464
其他可能的答案:
我看到其他人也遇到同样的问题。看起来 Google 给出了该错误消息,即使实际问题是其他问题。
如果您实际上没有启用您正在使用的 Google map 版本,则可能会收到此错误:http://www.raymondcamden.com/2013/2/13/Getting-a-quote-error-with-Google-and-youve-barely-touched-your-limit
自从您在控制台中检查您的使用情况以来,您可能已经检查过这一点,但将其包括在内以防万一。
未正确设置引荐来源网址也会导致以下问题: https://wordpress.org/support/topic/google-has-disabled-use-of-maps-api-for-this-application
Google maps api v3 reporting key error
人们还发现,把 key 拿出来一段时间似乎有帮助(尽管尚不清楚原因):Different errors (quota, disabled, bad API key, or none) when loading Google Maps API JavaScript (滚动至页面底部查看答案)
关于google-maps - 突然收到错误消息“Maps API 停用”和“Maps API 超出配额”,但 API 控制台中一切正常,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/27498022/