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

browser auth cause Failed assertion: line 11 pos 12: '_window != null' is not true. #59

Open
tomaszkubacki opened this issue Jul 11, 2014 · 1 comment

Comments

@tomaszkubacki
Copy link

Following code:

GoogleOAuth2 auth = new GoogleOAuth2(CLIENT_ID, [SCOPE]);
auth.login().then((t){

...
});

causes below in polymer app. Dartium 1.5.7

Uncaught Error: 'package:google_oauth2_client/src/browser/utils.dart': Failed assertion: line 11 pos 12: '_window != null' is not true.
Stack Trace:
#0 _WindowPoller._WindowPoller (package:google_oauth2_client/src/browser/utils.dart:11:12)
#1 GoogleOAuth2.login.completeByPromptingUser. (package:google_oauth2_client/src/browser/google_oauth2.dart:171:21)
#2 _rootRunUnary (dart:async/zone.dart:730)
#3 _RootZone.runUnary (dart:async/zone.dart:864)
#4 _Future._propagateToListeners.handleValueCallback (dart:async/future_impl.dart:488)
#5 _Future._propagateToListeners (dart:async/future_impl.dart:571)
#6 _Future._completeWithValue (dart:async/future_impl.dart:331)
#7 _Future._asyncComplete. (dart:async/future_impl.dart:393)
#8 _asyncRunCallbackLoop (dart:async/schedule_microtask.dart:23)
#9 _asyncRunCallback (dart:async/schedule_microtask.dart:32)
#10 _handleMutation (dart:html:38346)

Exception: 'package:google_oauth2_client/src/browser/utils.dart': Failed assertion: line 11 pos 12: '_window != null' is not true.

@miroslavp
Copy link

Hi guys,
Just want to let you know that I had the same issue ... I clicked allow popups for this address on Dartium browser and this fixed the problem for me

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

2 participants