question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

google api iframe error

See original GitHub issue

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

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:32 (12 by maintainers)

github_iconTop GitHub Comments

3reactions
bojeil-googlecommented, May 8, 2017

I accidentally was able to consistently (well enough to find the pattern) replicate this on my workstation when I emulate an iPhone in Chrome developer tools. FirebaseUI internally creates a copy of the original Auth instance so that Auth state changes are not triggered prematurely on the original instance before the sign in process is completed. The problem is both instances (issue is in the core firebase-auth.js sdk) were late loading gapi external library and in the process a race condition was encountered, we are changing the logic so multiple instances share the same late loading mechanism and do not clobber each other. I think this seems to be the mostly likely reason for this issue. It should be fixed and released next week. I will ping this thread when it’s ready.

I apologize for the frustration in this issue. It is genuinely hard to fix a bug when we cannot replicate it.

1reaction
calclaviacommented, Feb 17, 2017

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

Read more comments on GitHub >

github_iconTop Results From Across the Web

Error Messages | Maps Embed API - Google Developers
This page describes the error messages that can be returned by the Maps Embed API. When an error occurs, the Maps Embed API...
Read more >
jquery - google map - error in iframe - Stack Overflow
This Error is because you had not provided API Keys. Source Google. The script element that loads the API has no API key....
Read more >
Error "www.google.com refused to connect ... - Knowledge Base
Error "www.google.com refused to connect" Or “The Google Maps Embed API must be used in an iframe” Embedding Google Maps As a Web...
Read more >
Error in Embedding map, Please Help! - Google Support
I am Here because, I am troubling in embedding map code that I copied from Share option on google map. ​ ​<iframe ......
Read more >
FM14 Mac Google Maps Embed Generates iFrame Error
Yet again this bug has arisen when using embedded Google Maps in a Web Container. When you embed a map and view it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found