Skip to content

google_alerts.InvalidState: State was not properly obtained from the app #40

@serencha

Description

@serencha

OS: Windows 10
Browser: Chrome
Version: 0.2.9

When I run this:

from google_alerts import GoogleAlerts

ga = GoogleAlerts(email, password)
ga.authenticate()
ga.list()

I get this output:

←[1;32mDEBUG __init__:_config_bootstrap():156 2021-05-10 18:33:25,930←[0m| Caching authentication in config file
←[1;32mDEBUG __init__:_session_check():185 2021-05-10 18:33:25,930←[0m| Loaded cookies from session file
←[1;32mDEBUG __init__:_process_state():225 2021-05-10 18:33:26,460←[0m| Capturing state from the request
←[1;32mDEBUG __init__:authenticate():291 2021-05-10 18:33:27,202←[0m| [!] User has already authenticated

... and then I get an error about InvalidState. I have already saved my config and seeded my session. I have not added an alert - this is my first time using this API.

How should I get around this error?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions