-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Comments
Same issue here. Was working fine previously and I've made no updates to my own code. |
Same issue here. Everything was working just fine, no updates in my code. It started failing about 2 weeks ago. |
Is this still failing? What steps are you using to load the client library? |
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 |
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. |
Downloading our JS and serving it locally is not supported and is likely to lead to this sort of breakage. |
@DillonGray why platform.js and not client.js? |
@michal-husak and @bsittler suggestions fixed for me. |
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
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
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.
The text was updated successfully, but these errors were encountered: