Periodic "ReferenceError: 'google' is undefined" messages on the client-side

407 views
Skip to first unread message

etheriau

unread,
Apr 4, 2012, 11:22:45 PM4/4/12
to google-map...@googlegroups.com
Hi--



We've recently added a try/catch around our Google Maps-based application which notifies us of errors.  Since installing this script we see rare instances of various browsers having issues resolving "google" (i.e.: ReferenceError: 'google' is undefined).

This appears to happen relatively infrequently, across a wide number of browsers and network carriers, and relatively infrequently.  Because of this, I would think that it is possible that the client had some issue downloading the Google Web Map Library.

The script in question is loaded via the following manner on an SSL page:

<script type="text/javascript" src="https://maps-api-ssl.google.com/maps/api/js?v=3.7&amp;libraries=geometry,panoramio&amp;sensor=true&amp;oe=utf-8"></script>

First, do others monitor errors with the Google Web Maps Loading?  Does one of these per few thousand users seem comparable to your metrics?

Second, does anyone have insight on recovering from this if it is indeed "acceptable"?

Thanks.



eyt*

Enoch Lau (Google Employee)

unread,
Apr 5, 2012, 2:49:18 AM4/5/12
to google-map...@googlegroups.com
What percentage of loads seem to be failing? Have you tried loading the API from https://maps.googleapis.com/maps/api/js?... (see https://developers.google.com/maps/documentation/javascript/tutorial, the section on HTTPS) instead? Do you have pages that load the API using HTTP instead of HTTPS, and if so, do you see the same problem?

Also, would you be able to link to your site please?
Reply all
Reply to author
Forward
0 new messages