Author Topic: Google Outage Causing Google Charts and Other APIs to Not Work  (Read 280 times)

Online javajolt

  • Administrator
  • Hero Member
  • *****
  • Posts: 35171
  • Gender: Male
  • I Do Windows
    • windows10newsinfo.com
Google Outage Causing Google Charts and Other APIs to Not Work
« on: February 01, 2019, 06:34:19 PM »
If you use Google Charts, or other Google API libraries, as part of your web site then you may have noticed that they stopped working. This is being caused by an outage at Google that is causing the older jsapi library and causing the URL to return a 502 error.

This outage is causing Google's older script loader at http://www.google.com/jsapi to display and error and thus the library to not be sent to the browser and the code that relies on them, such as Google Charts, fails to load. When this happens, you will see an error in the Developer Tools console that states "Failed to load resource: the server responded with a status of 502 jsapi:1".



The good news is that you can easily switch to their new library loader by swapping the http://www.google.com/jsapi URL in your code to http://www.gstatic.com/charts/loader.js. This should allow your libraries to load again.

Google knows about the error and is currently working on resolving the outage as detailed in this Google Groups post.



More information about loading Google Charts using the newer library can be found here.

This is not normally a subject that I write about, but as some of my site's charts suddenly broke a few hours ago, I thought I would share the fix with others who may be in a similar situation.

source
« Last Edit: February 01, 2019, 06:36:45 PM by javajolt »