[Python] Google Gmail API OAuth 2.0 Error 400: redirect_uri_mismatch

Discussão em 'Python' iniciado por Stack, Março 19, 2025.

  1. Stack

    Stack Membro Participativo

    I am trying to connect to Google's Gmail API to fetch gmail data and interact with the service through jupyter notebook and Python using Visual Studio Code. I ran Google's quickstart.py, but I keep on running into this error: [​IMG]


    Authorization Error

    Error 400: redirect_uri_mismatch

    You can't sign in to this app because it doesn't comply with Google's OAuth 2.0 policy.; If you're the app developer, register the redirect URI in the Google Cloud Console.
    ​

    It gives me an URI each time, so I keep on adding the URI to the OAuth 2.0 but this error never seems to stop. I'm not sure what to put in here for the systems I am using (VS Code, Jupyter, and Python). I don't have an app running. I just want to do data science project with this data.

    [​IMG]

    I spent many hours online trying to figure this out but none to avail... Please help me connect to Gmail! Again, I just want to download email data from Gmail and create labels to sort emails through Python. Thanks for your help in advance!

    Continue reading...

Compartilhe esta Página