Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

gapi.client.load() 404 Error - URGENT! #206

Closed
Jennydmz opened this issue Nov 19, 2015 · 9 comments
Closed

gapi.client.load() 404 Error - URGENT! #206

Jennydmz opened this issue Nov 19, 2015 · 9 comments

Comments

@Jennydmz
Copy link

I'm getting a 404 response each time I try to load the gapi client (javascript Library).

function loadGmailApi() {
gapi.client.load('gmail', 'v1', myfun);
}

Request URL:https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en.70k-Pga9TXQ.O/m=googleapis_proxy/rt=j/sv=1/d=1/ed=1/am=AQ/rs=AGLTcCOWP1o8NgsIgsYWhFlVd2d-ijg0vQ/t=zcms/cb=gapi.loaded_0
Request Method:GET
Status Code:404 OK

It was working fine two days ago.

Is this a bug? or I have to change something in my code?

Anyone with the same problem? I will appreciate your help.

@DillonGray
Copy link

Same issue here. Was working fine previously and I've made no updates to my own code.

@dptucunduva
Copy link

Same issue here. Everything was working just fine, no updates in my code. It started failing about 2 weeks ago.

https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.pt_BR.Bia2S4D645M.O/m=client/rt=j/sv=1/d=1/ed=1/am=AQ/rs=AGLTcCNR0lTTr8UX8IIvbVBj3qgMblx3zA/t=zcms/cb=gapi.loaded_0

@bsittler
Copy link
Contributor

bsittler commented Mar 8, 2016

Is this still failing? What steps are you using to load the client library?

@DillonGray
Copy link

If anyone finds there way here, grab the latest JS if you're loading it locally. My issue was caused by some change in their API. I grabbed the latest from https://apis.google.com/js/platform.js

@dptucunduva
Copy link

Everything seems to be just fine now. At the end, the problem was actually my code - we were using an outdated version of gapi JS, copied locally, instead of using the one provided by google servers. We changed our application to fetch from google servers and everything is working like a charm now.

@bsittler
Copy link
Contributor

bsittler commented Mar 9, 2016

Downloading our JS and serving it locally is not supported and is likely to lead to this sort of breakage.

@michal-husak
Copy link

@DillonGray why platform.js and not client.js?

@pikitgb
Copy link

pikitgb commented Sep 21, 2017

@michal-husak and @bsittler suggestions fixed for me.

@bsittler
Copy link
Contributor

bsittler commented Sep 21, 2017

As discussed in #204 and #319 using a downloaded/cached copy of the JS client script is not supported and will cause breakage.

ddufresne pushed a commit to Numigi/odoo-web-addons that referenced this issue Oct 4, 2018
The dowloaded version of the file becomes deprecated after a certain time.
Google advises to use the file from the url https://apis.google.com/js/api.js.

google/google-api-javascript-client#206
ddufresne added a commit to Numigi/odoo-web-addons that referenced this issue Oct 10, 2018
The dowloaded version of the file becomes deprecated after a certain time.
Google advises to use the file from the url https://apis.google.com/js/api.js.

google/google-api-javascript-client#206
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants