quivr icon indicating copy to clipboard operation
quivr copied to clipboard

[Bug]: Unable to Access Login Page and Enter Credentials

Open gorfist opened this issue 2 months ago • 4 comments

What happened?

I am facing an issue with the login page when running the Quivr application locally using Docker Compose. Instead of seeing a functional login page where I can enter my username and password, I am being redirected to a page with the title "Talk to Quivr" and a message stating "Upload users have access to a free and limited demo of Quivr". Here are the details of the problem:

quivr

I followed the install instructions exactly and when I access the application at http://localhost:3000, I expect to see a login page where I can enter my credentials. However, I am automatically redirected to a page with the title "Talk to Quivr" and a message about limited demo access for upload users. I am unable to find any input fields or buttons to enter my username and password on this page. The console output shows some warnings and errors related to authentication, including 403 Forbidden errors for requests to endpoints like /user, /user/identity, and /user/credits. There are also validation errors thrown by the UserIdentity model, indicating that the 'id' field is expected to be a valid UUID but is receiving None.

To reproduce this issue:

Clone the Quivr repository and navigate to the project directory. Update the .env file with the necessary configuration values. Run docker-compose up to start the application. Access the application at http://localhost:3000.

I have already tried the following:

Verified that the frontend and backend containers are running without any startup errors. Double-checked the .env file to ensure the required configuration values are set correctly, especially those related to authentication and Supabase. Reviewed the console output for any relevant error messages or warnings.

I suspect that there might be an issue with the authentication flow or the routing logic in the frontend application. It seems that the application is not properly redirecting to the login page and is instead showing a different page altogether. I would greatly appreciate any assistance in identifying the root cause of this issue and providing guidance on how to resolve it. I need to be able to access the login page and enter my credentials to proceed with using the Quivr application. Please let me know if you require any additional information or if there are any specific files or code snippets that would be helpful for investigating this issue further. Thank you for your support!

Relevant log output

backend-core  | INFO:     127.0.0.1:46698 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:47924 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     127.0.0.1:39582 - "GET /healthz HTTP/1.1" 200 OK
backend-core  | INFO:     172.18.0.1:45868 - "GET /user HTTP/1.1" 403 Forbidden
backend-core  | INFO:     172.18.0.1:45880 - "GET /user/identity HTTP/1.1" 403 Forbidden
backend-core  | INFO:     172.18.0.1:45880 - "GET /user HTTP/1.1" 403 Forbidden
backend-core  | INFO:     172.18.0.1:45868 - "GET /user/identity HTTP/1.1" 403 Forbidden
backend-core  | INFO:     172.18.0.1:45882 - "GET /user/credits HTTP/1.1" 403 Forbidden

Twitter / LinkedIn details

No response

gorfist avatar May 06 '24 07:05 gorfist