Open hex opened 1 week ago
Hey @hex! I'm here to help you with any bugs, questions, or becoming a contributor. Let's squash those bugs together! 🤖
The "Internal Server Error" when connecting Google Drive on a self-hosted Quivr could be due to several reasons:
Environment Variables: Ensure that all necessary environment variables for Google OAuth, such as GOOGLE_CLIENT_ID
, GOOGLE_CLIENT_SECRET
, and others, are correctly set.
State Parameter: The state parameter must be correctly managed and passed between requests. Ensure that it is valid and matches the expected state.
User Validation: Check that the user_id
from the state matches the current_user
. Any mismatch will cause an error.
Token Fetching: The flow.fetch_token
method requires a valid authorization response. Ensure that the authorization response is correct and that the token fetching process is successful.
Service Initialization: Verify that the credentials are valid and that the service can be initialized without issues.
Additionally, the log indicates a warning about the scope change. Ensure that the requested scopes are correctly configured in the Google Cloud Console and match the scopes used in your application [1].
To continue talking to Dosu, mention @dosu.
What happened?
Trying to connect to Google Drive on a self hosted Quivr returns
Internal Server Error
.Relevant log output
Twitter / LinkedIn details
No response