Is GeoChart caching failed requests?

25 views
Skip to first unread message

John Grenham

unread,
May 7, 2020, 9:59:18 AM5/7/20
to Google Visualization API
Something strange is happening to my GeoChart requests. Some (e.g. https://www.johngrenham.com/findasurname.php?surname=Gilbride) are working, others not (e.g. https://www.johngrenham.com/findasurname.php?surname=Kilpatrick). The underlying code is the same.

Why should one consistently work and the other consistently fail?

John Grenham

John Grenham

unread,
May 7, 2020, 11:02:35 AM5/7/20
to Google Visualization API
Both running fine on my localhost development copy. The only difference between localhost and live is that live is https. Is there a problem with SSL calls to insecure libraries?

Daniel LaLiberte

unread,
May 7, 2020, 11:31:10 AM5/7/20
to Google Visualization API
Looking in the debugger for your second link, I see these errors:

findasurname.php:224 Uncaught SyntaxError: Unexpected identifier
bootstrap.min.js:6 Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
    at bootstrap.min.js:6
    at bootstrap.min.js:6
jsapi_compiled_default_module.js:133 Uncaught (in promise) Error: Container is not defined
    at gvjs_Jk (jsapi_compiled_default_module.js:133)
    at gvjs_WM.gvjs_dz [as constructor] (jsapi_compiled_ui_module.js:138)
    at new gvjs_WM (jsapi_compiled_ui_module.js:1234)
    at drawMarkersMap (findasurname.php?surname=Kilpatrick:118)

For the first link, the errors are a little different:

Uncaught Error: Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 3
    at bootstrap.min.js:6
    at bootstrap.min.js:6
jsapi_compiled_default_module.js:133 Uncaught (in promise) Error: Container is not defined
    at gvjs_Jk (jsapi_compiled_default_module.js:133)
    at gvjs_WM.gvjs_dz [as constructor] (jsapi_compiled_ui_module.js:138)
    at new gvjs_WM (jsapi_compiled_ui_module.js:1234)
    at drawMarkersMap (findasurname.php?surname=Gilbride:110)

That might be a clue for you, but I didn't look further in your code.

However, in both cases, you are loading both the jsapi loader and the new loader, which was required for a while, but no longer if you use the 'current' version, which it appears you are.  We are now starting to redirect the jsapi loader to the new loader, which could result in problems for GeoChart users if I didn't work out all the possible ways this might happen.  So it is best to just drop your loading of jsapi, and use the 'current' version if you can.

--
You received this message because you are subscribed to the Google Groups "Google Visualization API" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-visualizati...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-visualization-api/03b1abf1-a977-4ffb-8025-e7d71ec4b6e8%40googlegroups.com.


--

John Grenham

unread,
May 9, 2020, 12:49:46 PM5/9/20
to Google Visualization API
Thanks very much for the reply Daniel. You do an amazing job.

I've moved off the GeoChart onto Google maps, probably more suited in any case.

Thanks again.

John Grenham

On Thursday, 7 May 2020 14:59:18 UTC+1, John Grenham wrote:
Reply all
Reply to author
Forward
0 new messages