gcf-gmail-codelab
gcf-gmail-codelab copied to clipboard
Error in auth process
I get an error when trying to authorize my application to my gmail account to activate push notifications. When clicking the link in the "Trigger" tab in the auth_init function -- choosing the email account - clicking past the unverified app page - allowing permissions -> then i get this message after confirmation of settings: "An error has occurred in the authorization process."
Console in Chrome says:
Cross-Origin Read Blocking (CORB) blocked cross-origin response https://appengine.google.com/_ah/loginform?state=~AJKiYcGSoGF9FIKAWtQzvyjvE_kEnQ_NbMCaCgc_BHxeTRx77TZZzzwPBWBLeh0tSJ76YwdLFYDTK4c-bdp2sq00DHo3cvS5eCe8yttlof_9F_DIrTRP0Ki9t98iM0tX1rQl6gJXEVbdIBjDFd21fs8WiUsEoJIngXwLEoaKkIm-Xy1Yxfq1pI4aGA-PL_R2rSWmAXapaNN6k3aIUmEmmjMBsJxMmg05VQDIN_D4TgIIuHlSwavLlCRtTREgOCoFCUpzja6_9AMz5sTrbicdzblRWJ4YeVdnpYbE8AbP9X76z48OWGkYgjQWFopnV7DpQl0r0MYC-XZjthMF-XgeaxzJnjIyhWlVQMrV60HvUnri6uFvEnNFJpgixlOkW0CDteWjdsmDeZ3w with MIME type text/html. See https://www.chromestatus.com/feature/5629709824032768 for more details.
Auth callback shows an error:
TypeError: Cannot read property 'split' of undefined
at handler (/srv/node_modules/@google-cloud/express-oauth2-handlers/routes.js:50)
at (/srv/node_modules/@google-cloud/express-oauth2-handlers/routes.js:114)
at (/worker/worker.js:783)
at (/worker/worker.js:766)
at _combinedTickCallback (internal/process/next_tick.js:132)
at process._tickDomainCallback (next_tick.js:219)
I also tried running Chrome with --disable-web-security to try to disable CORB -- the error disappears frmo the console about CORB but the message in
is the same.Any ideas?