Skip to content

Cannot read properties of null (reading 'postMessage') #1221

Open
@nuclearWinters

Description

@nuclearWinters

Important gapi.auth2 notice: gapi.auth2 has been deprecated and replaced with Google Identity Services. Please see https://developers.google.com/identity/sign-in/web/deprecation-and-sunset for more information. If you have questions related to authentication/authorization please look at the associated documentation or post questions on Stack Overflow with the google-oauth tag.

Summary
Everything is working perfectly until this page loads

Screenshot 2024-06-10 at 3 22 50 p m Screenshot 2024-06-10 at 3 23 00 p m

The pop-up gets blank and the following error is displayed on the console: Cannot read properties of null (reading 'postMessage')

This only happens to some inactive accounts, is there a recommended way to handle this or is this a error in code?

Browser(s)/Version(s)
Version 125.0.6422.141 (Official Build) (arm64)

Expected Behavior
The user should be logged in or the pop-up should show the next page

Actual Behavior
The user is not being logged in or the pop-up is not displaying the next page. Instead it display a blank page and an error message

Steps to Reproduce
To reproduce you need an old account and then try to log in using the google-api-javascript-client

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions