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

"Uncaught TypeError: Cannot read property 'sub' of null" when calling [gapi.auth.authorize(..)] for BigQuery #110

Closed
wonderfly opened this issue Jan 7, 2015 · 49 comments

Comments

@wonderfly
Copy link
Contributor

From graham.p...@shinetech.com on October 21, 2013 22:02:54

What steps will reproduce the problem? If possible, provide a live demo of the issue. 1. load " https://apis.google.com/js/client.js?onload=handleClientLoad "
2. In the handleClientLoad function call gapi.auth.authorize with the required params (clientid and scope(s))
3. We're using scope " https://www.googleapis.com/auth/bigquery "

What is the expected output?

No error. Authorize is successful when signed in.

What do you see instead?

Error in console: "Uncaught TypeError: Cannot read property 'sub' of null" on line 282 of gapi library What version of the product are you using? On what operating system? /Ubuntu 13.04 Please provide any additional information below. This error has suddenly appeared today. We have not changed anything. Code snippet to highlight problem is below. We don't reach "handleAuthResult" anymore.

<script src=" https://apis.google.com/js/client.js?onload=handleClientLoad"></script> function handleClientLoad() {
alert('handleClientLoad'); //reached
window.setTimeout(function() {checkAuth(true)}, 1);

}

function checkAuth(immediate) {
alert('checkAuth'); //reached
gapi.auth.authorize({client_id: CLIENT_ID, scope: [BQ_SCOPE], immediate: true}, handleAuthResult);
}

function handleAuthResult(authResult) {
alert('checkAuth'); //don't get here anymore
}

Original issue: http://code.google.com/p/google-api-javascript-client/issues/detail?id=110

@wonderfly
Copy link
Contributor Author

From abeer.qu...@oc.edu.au on October 21, 2013 22:09:34

Getting same issue, just started appearing...

@wonderfly
Copy link
Contributor Author

From lixiaom...@wandoujia.com on October 21, 2013 22:20:20

We have same problem,our site is completely blocked now.
I checked network for the source ‘ https://apis.google.com/***/cb=gapi.loaded_0’ , found its response headesr:
last-modified:Mon, 21 Oct 2013 19:21:40 GMT

It's probably Google updated it with a bug.
Plz Googler fix it.

@wonderfly
Copy link
Contributor Author

From arthur.c...@my98a.com on October 21, 2013 22:20:41

The same issue, code, browser all the same. but suddenly can't work today.

@wonderfly
Copy link
Contributor Author

From wangx...@wandoujia.com on October 21, 2013 22:30:54

What a fucking API !!! Why did this API not have auto test case? It make all my users can not use!!!

@wonderfly
Copy link
Contributor Author

From graham.p...@shinetech.com on October 21, 2013 22:54:11

Something in the GAPI must have changed today which has resulted in this regression bug. Priority needs to be raised for this issue please.

@wonderfly
Copy link
Contributor Author

From j...@google.com on October 21, 2013 22:58:51

We are investigating the issue.

Labels: -Priority-Medium Priority-Critical

@wonderfly
Copy link
Contributor Author

From graham.p...@shinetech.com on October 21, 2013 23:07:34

Thanks. Please keep us updated as best you can.

@wonderfly
Copy link
Contributor Author

From msvo...@interpunkt.hr on October 21, 2013 23:17:38

can reproduce on 2 of my production sites

@wonderfly
Copy link
Contributor Author

From laurentd...@gmail.com on October 21, 2013 23:30:14

Some issue on our production site.

@wonderfly
Copy link
Contributor Author

From njona...@gmail.com on October 21, 2013 23:43:05

Same issue on our production site, please let us know!

@wonderfly
Copy link
Contributor Author

From gilberts...@gmail.com on October 22, 2013 00:09:20

Ouch, prod site down. Sorry for the 'me too' but this is a pretty nasty situation.

@wonderfly
Copy link
Contributor Author

From msvo...@aut-aut.hr on October 22, 2013 00:18:35

Anyone knows any workarounds besides removing the library?

@wonderfly
Copy link
Contributor Author

From gus...@fluencyforums.com on October 22, 2013 00:21:49

Down. Anyone have an update?

@wonderfly
Copy link
Contributor Author

From j...@google.com on October 22, 2013 00:24:29

We have identified the cause and are working on a fix. I will post another update with ETA.

Status: Started

@wonderfly
Copy link
Contributor Author

From ad...@evenbytes.com on October 22, 2013 00:24:45

We are having the same problem in our Production Environment when trying to access to the Drive API JS library

Error Message:

Uncaught TypeError: Cannot read property 'sub' of null cb=gapi.loaded_0:282

@wonderfly
Copy link
Contributor Author

From hoopla...@gmail.com on October 22, 2013 00:30:28

Uncaught TypeError: Cannot read property 'sub' of null cb=gapi.loaded_0:282 same issue here. I was trying to fix it whole day. WHat a bug!!!

@wonderfly
Copy link
Contributor Author

From wangx...@wandoujia.com on October 22, 2013 00:40:53

Why not roll-back this API ?! right now!

@wonderfly
Copy link
Contributor Author

From yuki.hay...@gmail.com on October 22, 2013 00:51:58

Hi,i have same problem on Google API Auth Samples. https://google-api-javascript-client.googlecode.com/hg/samples/authSample.html when i using chrome, console says "Uncaught TypeError: Cannot read property 'sub' of null (cb=gapi.loaded_0:282) ".

I was relieved this problem isn't just me.

Attachment: スクリーンショット 2013-10-22 16.15.56.png

@wonderfly
Copy link
Contributor Author

From j...@google.com on October 22, 2013 01:05:23

We expect the fix to finish rolling out in < 4 hours.

@wonderfly
Copy link
Contributor Author

From gus...@fluencyforums.com on October 22, 2013 01:10:37

4 hours? This seems like a hugely critical bug.

@wonderfly
Copy link
Contributor Author

From graham.p...@shinetech.com on October 22, 2013 01:12:38

Why can't you roll back until you make the fix?

@wonderfly
Copy link
Contributor Author

From i...@ictservices.be on October 22, 2013 01:14:15

Indeed we have a presentation in a couple of moments where we intensively use the goolge analytics api!
please roll back!

@wonderfly
Copy link
Contributor Author

From kyaw...@yathit.com on October 22, 2013 01:22:29

Same problem. any fix?

@wonderfly
Copy link
Contributor Author

From davidjgr...@gmail.com on October 22, 2013 01:23:57

Again, simply unbelievable. I know it's beta, but production systems, like Drive Realtime mandate the use of this library. It's just impossible to create a commercial offering based on something that fails time and time again.

@wonderfly
Copy link
Contributor Author

From dani8...@gmail.com on October 22, 2013 01:27:33

I have the same problem, any idea??

@wonderfly
Copy link
Contributor Author

From hh...@srwa.co.uk on October 22, 2013 01:52:40

Just a +1. Happy we're not the only ones having this issue and that the API hasn't been depreciated. Looking forward to the fix.

@wonderfly
Copy link
Contributor Author

From paul.bo...@goobito.com on October 22, 2013 01:58:57

Same here. This is REALLY bad. Comeon Google. roll back. That's whats rollback is for, right? Fix it in your dev enviroment and when it WORKS, THEN release.

@wonderfly
Copy link
Contributor Author

From SergPega...@gmail.com on October 22, 2013 02:27:58

Same problem!

@wonderfly
Copy link
Contributor Author

From gilberts...@gmail.com on October 22, 2013 02:39:05

And we're back!

@wonderfly
Copy link
Contributor Author

From vivek.pa...@vizury.com on October 22, 2013 02:49:27

I continue to see the same error. Is it back for others on the list?

@wonderfly
Copy link
Contributor Author

From ustakrah...@gmail.com on October 22, 2013 02:51:32

For me, this problem is still existing.

@wonderfly
Copy link
Contributor Author

From i...@ictservices.be on October 22, 2013 02:52:59

still have the same problem...

@wonderfly
Copy link
Contributor Author

From mauro.so...@gmail.com on October 22, 2013 02:54:03

Still not working for me too, both in mine and other products I use.
Give time to the fix to spread over the CDN

@wonderfly
Copy link
Contributor Author

From mario.co...@webrepublic.ch on October 22, 2013 03:03:27

it is still not working in Europe, Switzerland....

@wonderfly
Copy link
Contributor Author

From jonatan....@gmail.com on October 22, 2013 03:54:53

keeping my fingers crossed that it will roll out before a presentation I have in 30 min. Does anybody have a temporary fix?

@wonderfly
Copy link
Contributor Author

From graham.p...@shinetech.com on October 22, 2013 04:04:29

The sample page is back up and working again which is a good sign. https://google-api-javascript-client.googlecode.com/hg/samples/authSample.html I'm away from my work machine so I can't actually test our app but it would appear the fix is currently being rolled out.

@wonderfly
Copy link
Contributor Author

From gus...@fluencyforums.com on October 22, 2013 04:04:57

I understand that this is a beta client, but anything Google puts out will immediately be used in major production systems all across the world. How can it be acceptable for a bug that cripples anyone using your javascript client (most website using Google login/apps/etc) to have a four hour turn around time for a fix? There are multiple ways of not relying on a CDN cache to expire for a fix to go out and a lot of companies have had this solved for a while. I'm genuinely confused.

@wonderfly
Copy link
Contributor Author

From hh...@srwa.co.uk on October 22, 2013 05:03:15

All working now, thanks.

@wonderfly
Copy link
Contributor Author

From lploya...@gmail.com on October 22, 2013 05:04:42

It's working again for me

@wonderfly
Copy link
Contributor Author

From paul.bo...@goobito.com on October 22, 2013 05:07:49

Yup. Works here in Portugal too:) thanks everyone!

@wonderfly
Copy link
Contributor Author

From michael....@runtastic.com on October 22, 2013 05:17:20

works again in Austria.

@wonderfly
Copy link
Contributor Author

From jamal.romero on October 22, 2013 05:18:41

Works in the first go, refresh and same error appears again.

@wonderfly
Copy link
Contributor Author

From home.y...@gmail.com on October 22, 2013 05:40:31

Works in Ukraine! Thanx guyz!

@wonderfly
Copy link
Contributor Author

From paul.bo...@goobito.com on October 22, 2013 05:48:11

Works in the first go, refresh and same error appears again. << SAME for us :(

@wonderfly
Copy link
Contributor Author

From j...@google.com on October 22, 2013 13:00:55

Status: Fixed

@wonderfly
Copy link
Contributor Author

From kon.soul...@shinetech.com on October 22, 2013 15:41:02

Did this issue have any impact on the other language APIs, Java or Python, also? Thanks

@wonderfly
Copy link
Contributor Author

From j...@google.com on October 22, 2013 15:46:14

RE #49: No, this incident impacted the JS library only.

@wonderfly
Copy link
Contributor Author

From graham.p...@shinetech.com on October 23, 2013 15:10:42

Thanks for the fix and the update.

@wonderfly
Copy link
Contributor Author

From wangx...@wandoujia.com on October 23, 2013 20:42:43

I realy want to know why use too long long long ... time fix so big bug ???!!! Why not roll-back at once???

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant