Harry Jiang February 2016

Google Maps javascript API not loading after tab has been open for long time with 403 response

So we have a page that uses angular and has a few tabs, and a few of the tabs have google maps on them, but they're loaded lazily and only when they're needed. When the page is opened, all the maps and tabs work fine but if the tab is opened for a while then a new tab with a map is clicked into, the map won't load as in it just shows grey space and in the console I see errors that look like

Failed to load resource: the server responded with a status of 403 (OK)
https://maps.googleapis.com/maps/api/js/StaticMapService.GetMapImage?1m2&1i…070430&2e1&1u573&2u5355&&token=44361

I'm a little confused because 403 usually means forbidden but it says OK? I've checked my quotas and it's not even close to hitting any rate limits or quotas. Any help on why this is happening would be helpful or advice. Thanks

Answers


nAviD February 2016

Probably some of google static(for example gstatic.google.com,googleapis.com) file centers have been blocked by your Internet service provider or even your country.

Post Status

Asked in February 2016
Viewed 1,628 times
Voted 12
Answered 1 times

Search




Leave an answer