gapi or auth2 inconsistently fail loading
Closed this issue · 3 comments
Issue: gapi
and auth2
fail loading inconsistently
Sometimes it's gapi
that fails, other times I will refresh the page and find out that auth2
failed.
Occasionally, I will refresh my page and the sign-in functionality works as intended. I thought the issue may be async loading of gapi
/auth2
, so I tried wrapping my Polymer-calling code in a $(document.ready({...})
function, but that did not help.
This leads me to believe there is some sort of issue on Polymer's end; I may be wrong, but if there's any way to help, I would greatly appreciate it.
Dependency | Version |
---|---|
Polymer | v1.2.0 |
WebComponentsJS | v0.7.15 |
Google-Signin | v1.2.0 |
Can't help you with this without a reproducible case. Can you provide an example? What kind of errors are you seeing? Are libraries failing to load because of a network error?
@atotic Unfortunately I can't link you to my project, since it's using private data, but here are some screen shots:
No network errors.
What's the stack trace of your error?
There is something specific to your setup causing this. I assume you've tried the demo pages in google-signin, and that they work.
Debugging it is about figuring out what exactly is failing, and then what's the cause.
Libraries are not loaded. It ;ooks like they are from the network. lines 310 is outside of any function. Are you using latest release? Set some breakpoints, dig in deep, see what you find out.