firebaseui-web icon indicating copy to clipboard operation
firebaseui-web copied to clipboard

google api iframe error

Open zirho opened this issue 9 years ago • 32 comments

steps to reproduce this

  1. OSX 10.11.6 , chrome Version 55.0.2883.95 (64-bit)

  2. incognito

  3. https://fir-ui-demo-84a6c.firebaseapp.com/ Try several times, if this error is not coming up.

There are two issues in the screenshot below. I am not sure the first one causes other issues, but following errors occur randomly when the first one is present.

Uncaught TypeError: r[t] is not a function
    at Object.Y.x.(anonymous function) [as loaded_0] (https://apis.google.com/js/api.js?onload=__iframefcb799082:10:484)
    at https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en._gEgtcvh1fE.O/m…d=1/ed=1/am=AQ/rs=AGLTcCNp1OHO8NH9OIu_qsqhhE2s-Jq6qA/cb=gapi.loaded_0:1:15
Y.x.(anonymous function) @ api.js?onload=__iframefcb799082:10
(anonymous) @ cb=gapi.loaded_0:1
iframe.js:118 XHR finished loading: GET "https://www.googleapis.com/identitytoolkit/v3/relyingparty/getProjectConfig?key=AIzaSyBgcSHxbo93P-N9Sh-ZIqgzvwicHDk_Skc&cb=1485132920219".
H.send @ iframe.js:118
Q.hj @ iframe.js:172
zh @ iframe.js:171
(anonymous) @ iframe.js:176
E @ iframe.js:85
Ch @ iframe.js:176
(anonymous) @ iframe.js:184
e.Wb @ iframe.js:89
Ce @ iframe.js:93
ye @ iframe.js:93
E.Oh @ iframe.js:92
ge @ iframe.js:85
firebase.js:180 Uncaught Error: Network Error
    at ontimeout (firebase.js:180)
    at api.js?onload=__iframefcb799082:10
ontimeout @ firebase.js:180
(anonymous) @ api.js?onload=__iframefcb799082:10
firebase.js:81 Uncaught Q {code: "auth/network-request-failed", message: "A network error (such as timeout, interrupted connection or unreachable host) has occurred."}
(anonymous) @ firebase.js:81

image

zirho avatar Jan 23 '17 00:01 zirho

Hi @zirho I tested in: OSX 10.12.2 Chrome Incognito Version 55.0.2883.95 (64-bit) I was unable to replicate this. The first issue seems to be causing the second problem. I don't know why this is happening in your case though. I will test again tomorrow.

bojeil-google avatar Jan 23 '17 03:01 bojeil-google

My colleague was able to recreate this when simulating extremely slow network conditions. We are working on increasing the timeouts to be more accommodating to such conditions.

bojeil-google avatar Jan 23 '17 18:01 bojeil-google

@bojeil-google

Thank you for the awesome project and support!

zirho avatar Jan 23 '17 22:01 zirho

I checked this at home and work. Both work just fine now.

Thanks!

zirho avatar Jan 24 '17 04:01 zirho

Hey @zirho, we haven't pushed the change yet. I will update this post when it's out. I think this explains the flaky nature of this. You may be checking this in places where maybe the network connection is slow and the connection is timing out whereas other places it is working fine.

bojeil-google avatar Jan 24 '17 04:01 bojeil-google

Hello and thanks for this excellent project as well. I just ran into this very same issue myself. However for me, it has been the network error every time.

Is there a way to access a nightly build of some kind. Thanks!!

jwuliger avatar Jan 26 '17 21:01 jwuliger

I'm having the same issue, and I confirm that it's mostly for users having a 2G connection (and some users on 3G)

sistr22 avatar Jan 27 '17 15:01 sistr22

I can confirm that this error is occurring in pretty fast internet as well. No other applications are having any trouble with network.

chit786 avatar Jan 28 '17 09:01 chit786

I can confirm that I am also getting the error on a very fast network.

jwuliger avatar Jan 29 '17 02:01 jwuliger

I'm getting a similar error on my test website.

Uncaught TypeError: r[t] is not a function
    at Object.Y.x.(anonymous function) [as loaded_0] (https://apis.google.com/js/api.js?onload=__iframefcb421422:10:484)
    at https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.en.tHdj510e-ns.O/m…d=1/ed=1/am=EQ/rs=AGLTcCPCdLwDRn3a06BckU1EcHEnBiuC1g/cb=gapi.loaded_0:1:15

It occurred intermittently at one point, now most of the time!!

(note that I am changing the website code in the coming few days to avoid a dependency with this UI library, because of this error)

soshsquatch avatar Feb 11 '17 18:02 soshsquatch

Firebase Auth had significantly increased the network timeouts since this issue was reported. Latest version is 3.6.9. I recommend you switch to this. Previous timeout was 10 seconds. Now it should be 30 seconds. So far the only tangible environment provided in this thread is @zirho's OSX 10.11.6 , chrome Version 55.0.2883.95 (64-bit) - incognito. I have tested in OSX 10.12.2 chrome 56.0.2924.87 (64-bit) incognito. I was not able to replicate this issue. Please give me a reliable way to recreate this. We can't fix something we can't recreate. We need specific environment data and clear actions to trigger to replicate this.

bojeil-google avatar Feb 11 '17 19:02 bojeil-google

I can replicate this error too (on both low speed and high speed internet).

calclavia avatar Feb 17 '17 23:02 calclavia

@calclavia could you provide more information about your configuration (browser name and version), the SDK version you're using, as well as the console logs? Thanks!

TMSCH avatar Feb 17 '17 23:02 TMSCH

happens always for me

System: Host: mint-pro Kernel: 4.4.0-64-generic x86_64 (64 bit) Desktop: Cinnamon 3.0.7 Distro: Linux Mint 18 Sarah Chrome: Version 57.0.2950.4 (Official Build) dev (64-bit)

Uncaught TypeError: r[t] is not a function
    at Object.Y.x.(anonymous function) [as loaded_0] (https://apis.google.com/js/api.js?onload=__iframefcb263354:10:484)
    at https://apis.google.com/_/scs/apps-static/_/js/k=oz.gapi.pt_BR.ynStCtfM3tQ.…d=1/ed=1/am=AQ/rs=AGLTcCNeeUo3StI7MVUfX1YW2rU7o2AI0g/cb=gapi.loaded_0:1:15
Y.x.(anonymous function)	@	api.js?onload=__iframefcb263354:10
(anonymous)	@	cb=gapi.loaded_0:1

cescoferraro avatar Feb 25 '17 18:02 cescoferraro

@TMSCH I'm using latest version of Chrome. The error I receive is same as @cescoferraro

calclavia avatar Feb 25 '17 19:02 calclavia

@cescoferraro @calclavia thanks for the further informations! Could you confirm that you are using the latest version 3.6.10?

TMSCH avatar Feb 28 '17 06:02 TMSCH

@TMSCH I was using Firebase UI from https://cdn.firebase.com/libs/firebaseui/1.0.0/firebaseui.js

calclavia avatar Feb 28 '17 16:02 calclavia

@calclavia and what version of the Firebase SDK? (FirebaseUI does not come with the Firebase SDK directly, you have to include it yourself, for instance using the Web snippet of the Firebase console)

TMSCH avatar Feb 28 '17 17:02 TMSCH

@TMSCH Ah, for Firebase SDK, I was using <script src="https://www.gstatic.com/firebasejs/3.6.9/firebase.js"></script>

I'll try the latest version!

calclavia avatar Feb 28 '17 17:02 calclavia

I get this error as well, pretty much every time. I've tried from two different locations (both with fast connections) and from Chrome 57 and Firefox 52 on Ubuntu 16.10 and Chrome 57 on Windows 10.

I'm using firebase-web 1.0 from npm and I've tried firebase sdk 3.7.4, 3.7.1, and 3.6.10 with the same results in each. One strange thing is that I sometimes get a different Google account chooser but I can't find a rhyme or reason as to why. One looks newer than the other, but they both have the same options.

Strangely, I just tried with firebase sdk 3.6.4 and it seems to work. I still see the "Uncaught Type Error" mentioned above, but with 3.6.4, it redirects and I log in. Wit 3.6.10 or newer, I see the error and it just hangs.

Let me know if there's any other information you'd want or need.

Thanks!

Andorbal avatar Mar 31 '17 01:03 Andorbal