2

Our application is deployed on GCP (Google Cloud). It uses Google based authentication. Recently since 25th Feb 22 , we have been observing sign in issues in the application. When we hit the developer console on chrome , we see an error ": bundle.js:17014 Type Error: Cannot read properties of undefined (reading 'setApiKey')"

The error line then points to below api :

This api is further calling Google platform.js script which opens the Google sign in page (the user puts his/her email and then they log in to app post authentication).

This issue is intermittent e.g. it happens for 20 mins and then we clear the cache and cookies and then it goes away but then it comes back again. This workaround does not even work in all attempts and hit and trail works. Not sure what is happening here.

sudhir
  • 46
  • 5
  • You may have a look at a similar [Stackoverflow case](https://stackoverflow.com/questions/55314208/referenceerror-gapi-is-not-defined). – Mousumi Roy Mar 05 '22 at 05:37
  • did you find any solution, we also seem to have the same problem. we investigated it a little, check our findings https://github.com/google/google-api-javascript-client/issues/797 – sandeep koduri Mar 08 '22 at 17:13

0 Answers0