You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bug:
Everytime gspread.oauth is used it uses a different port for the redirect URI which means I cant set a redirect URI for my OAuth client ID in the API dashboard. Because of the fact that I cant set a URI that will repeat the next time I run my code I constantly get the following message:
Steps to reproduce the behavior:
Downlaod JSON for your OAuth Client ID
Name the downloaded file as 'oauth_creds.json'
Move the JSON gile into the 'auth' folder of your project
The expected behavior is for a static redirect URI to be produced, that way it can be defined properly in the web console. Otherwise a URI with a different port each time can't be defined in the web console for the google API.
Environment info:
OS Linux Mint
Python 3.10.6
gspread 5.7.2
The text was updated successfully, but these errors were encountered:
I understand your point about the port being used locally where your code run. We can look for a way to solve this.
I am confused about your second comment:
I believe the solution may be to use 'local_server_flow'
What flow do you use ? the default one ? because if you use the default flow it's already the local_server_flow which uses some port to listen locally and to me is where your issue is located. If you use the console_flow then it won't work it has been deprecated.
This error is also happening to me. Any solution for this one?
If I updated that dynamically changing port number in Google Cloud > Redirect URI , error changed to "localhost refused to connect". I think this new error happened because of my machine permission for port , correct? How should I solve that kind of permission error? When I tried to search on internet , some suggested to setup flask server with this port on my own. Do I need to setup like this just to use gspread?
Bug:
Everytime gspread.oauth is used it uses a different port for the redirect URI which means I cant set a redirect URI for my OAuth client ID in the API dashboard. Because of the fact that I cant set a URI that will repeat the next time I run my code I constantly get the following message:
Steps to reproduce the behavior:
The expected behavior is for a static redirect URI to be produced, that way it can be defined properly in the web console. Otherwise a URI with a different port each time can't be defined in the web console for the google API.
Environment info:
The text was updated successfully, but these errors were encountered: