Skip to content
This repository has been archived by the owner on Feb 19, 2022. It is now read-only.

Intermittent failure while loading Google Cloud Endpoints #77

Open
probablyodd opened this issue Aug 31, 2016 · 0 comments
Open

Intermittent failure while loading Google Cloud Endpoints #77

probablyodd opened this issue Aug 31, 2016 · 0 comments

Comments

@probablyodd
Copy link

While bootstrapping an Angular app that requires the Google Cloud Endpoints, the library intermittently fails to bootstrap correctly resulting in an undefined window.gapi.auth object.

As per the documentation, GAuth.load or GAuth.checkAuth should be called in the run block to load the OAuth api after which it should be fine to proceed with calls that requires the apis when the promise resolves. This however does not seem to be the case as I have consistently run into intermittent errors where the promise resolves but calls to window.gapi.auth.setToken fail as the auth object is undefined.

This issue has happened in the current version 1.x.x as well as earlier version.s

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

No branches or pull requests

1 participant