Skip to content
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

Permission error in Claude3 #29

Closed
linkedlist771 opened this issue Apr 15, 2024 · 7 comments
Closed

Permission error in Claude3 #29

linkedlist771 opened this issue Apr 15, 2024 · 7 comments
Labels
good first issue Good for newcomers

Comments

@linkedlist771
Copy link
Contributor

Following the readme steps , got permission error.

image

@Amm1rr
Copy link
Owner

Amm1rr commented Apr 17, 2024

Did you log in to your account using your browser? (Firefox, Chrome, etc.)
Be careful if you have multiple profiles on your browser, as there may be a complicated error.
This error is caused by the session.
Keep me updated.

@linkedlist771
Copy link
Contributor Author

I login to the browser through my local machine and run this app in a remote VPS. This may be the reason for this, for I want to use the VPS to provide a long time service. I have tried to login to the Chrome and Edge in my local machine with different accounts, which is fine. And my VPS is a headless servicer, I have no idea about to use it to login in.

@Amm1rr
Copy link
Owner

Amm1rr commented Apr 17, 2024

You have two options to address the issue:

  1. The problem lies in logging into your VPS via a browser instead of your local machine.
  2. Alternatively, you can configure your local machine session in the Config.conf file on your VPS.

@Amm1rr Amm1rr added the good first issue Good for newcomers label Apr 17, 2024
@linkedlist771
Copy link
Contributor Author

Yes indeed, I choose the second options to use this. Here is what I do to trigger this problem:

  1. I log in to my Claude 3 account in Chrome on my local machine.
  2. I use F12 to find the cookie in the browser, I paste it into the Config.conf.
  3. I start this project on my VPS use the Config.conf in step 2.
  4. I use the docs route provided by fastapi in the service in step3 to make a request.

Then I met this issue, got permission denied. Maybe the cookie is related with login IP, later I will try to use this project on my local machine to make sure of it.

@Amm1rr
Copy link
Owner

Amm1rr commented Apr 19, 2024

Update your clone, then run the server and check your sessions on http://localhost:8000/WebAI
Can you see sessions for Claude and Gemini?

@linkedlist771
Copy link
Contributor Author

After all thoes methods I tried, finally I succeed. It turns out the the login in device seems to be the key issue in my case. The cookie is bound with the IP address(or maybe the device) when you first login into it. So it can not be used elsewhere except the login device. By the way, I want to know that, what is the expiration date of the cookie, if it is possible to have a auto-login/refresh module here.

image

@Amm1rr
Copy link
Owner

Amm1rr commented Apr 21, 2024

Interesting! A few months ago, I remember trying WebAI Server on my Android device with using a laptop session .
I'm not sure if I was on the same network at the time. I should test it again to be sure.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants