New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
GoogleDriveLoader creates random ports #168
Comments
let's maybe add a parameters with a default value, and throw a meaningful erorr description if the port is occupied? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi everyone,
I started to work with the GoogleDriveLoader() and I recognized that there might be an issue with the oauth flow. Let's assume the following setup:
.env file:
GOOGLE_APPLICATION_CREDENTIALS=""
main.py:
With this setup, the GoogleDriveLoader() creates a local auth server during local development that always uses a random port. This leads to the problem that my redirect url that I configured in the Google Cloud never works. So I'm wondering why this class creates a local server and if so, why can't we set the port ourselves?
The code which creates this behavior is in line 191:
I can solve this issue by setting the port to my preffered one eg 8080. Anyone who has an idea?
The text was updated successfully, but these errors were encountered: