即使加载正确的URL,也不会出现NotLoadingAPIFromGoogleMapsError [英] NotLoadingAPIFromGoogleMapsError even when loading correct URL

查看:101
本文介绍了即使加载正确的URL,也不会出现NotLoadingAPIFromGoogleMapsError的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

对于某些用户,即使使用正确的URL,我也会收到 NotLoadingAPIFromGoogleMapsError 错误:(pug语法):

I am getting the NotLoadingAPIFromGoogleMapsError error for some users even if the correct URL is being used: (pug syntax):

script(type='text/javascript' src='https://maps.googleapis.com/maps/api/js?key=MY_KEY&libraries=places')

这似乎是由脚本生成的Authentication API调用导致的.其他人有这个问题吗?您是如何解决的?

It seems to be resulting from the Authentication API call generated from the script. Anyone else have this issue? How did you solve it?

推荐答案

希望其他人会发现这很有用-我收到了以下来自Google的答复:

Hopefully others will find this useful - I received an answer from Google as follows:

如果有人将地图打开以获取更多信息,则API会话令牌将过期大约需要24小时,所以看到这些水平很低是正常的错误.(这是预期的行为)

The API session token expires if someone leaves a map open for more than about 24 hours, so it's normal to see a low level of these errors. (This is the intended behavior)

在任何地方都没有关于此的文档-因此希望这个答案将有助于节省人们的研究时间.

There's no documentation about this anywhere - so hopefully this answer will help save people research time.

可能有一种方法可以捕获该错误并在发生错误时重新进行授权.如果可能的话,我会在这里更新.

There might be a way to catch the error and re-authorize if it occurs. I'll update here if that's a possibility.

这篇关于即使加载正确的URL,也不会出现NotLoadingAPIFromGoogleMapsError的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆