isafulf / inbox_cleaner

A python script to help manage a Gmail inbox by filtering out promotional emails using GPT-3 or GPT-4.
415 stars 25 forks source link

Getting incorrect URI #5

Open Koalamanx opened 9 months ago

Koalamanx commented 9 months ago

Hi,

I am still at the step of setting up OAuth, in the URI field I am setting it to: 'http://localhost' The script opens a random port every time, how do I define this in the URI or in the script, right now I am always getting:

_**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. Request details: redirecturi=http://localhost:64714/ Related developer documentation**

Because it is a random port every time, how to I proceed?

Thank you so much!

EDIT: Got it working by manually defining the port in the script.