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

Fix ClaudeSync 403 Error on Python 3.12.5 with Claude.ai #49

Merged
merged 5 commits into from
Aug 19, 2024
Merged

Conversation

jahwag
Copy link
Owner

@jahwag jahwag commented Aug 19, 2024

This update allows ClaudeSync to run with the provider Claude.ai on Python 3.12.5 by switching the HTTP client from requests to urllib.

$ python --version && claudesync api login claude.ai
Python 3.12.5
To obtain your session key, please follow these steps:
1. Open your web browser and go to https://claude.ai
2. Log in to your Claude account if you haven't already
3. Once logged in, open your browser's developer tools:
   - Chrome/Edge: Press F12 or Ctrl+Shift+I (Cmd+Option+I on Mac)
   - Firefox: Press F12 or Ctrl+Shift+I (Cmd+Option+I on Mac)
   - Safari: Enable developer tools in Preferences > Advanced, then press Cmd+Option+I
4. In the developer tools, go to the 'Application' tab (Chrome/Edge) or 'Storage' tab (Firefox)
5. In the left sidebar, expand 'Cookies' and select 'https://claude.ai'
6. Locate the cookie named 'sessionKey' and copy its value. Ensure that the value is not URL-encoded.
Please enter your sessionKey: 
Please enter the expires time for the sessionKey (optional) [Wed, 18 Sep 2024 15:32:03 UTC]: 
Logged in successfully.
...
$ claudesync project sync
Local → Remote: 100%|█████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████████| 46/46 [00:43<00:00,  1.05it/s] 
Project sync completed successfully. 

@jahwag jahwag merged commit 5dee612 into master Aug 19, 2024
3 checks passed
@jahwag jahwag deleted the urllib branch August 19, 2024 15:43
@jahwag jahwag linked an issue Aug 19, 2024 that may be closed by this pull request
pressdarling pushed a commit to pressdarling/ClaudeSync that referenced this pull request Dec 1, 2024
This update allows ClaudeSync to run with the provider Claude.ai on
Python 3.12.5 by switching the HTTP client from requests to urllib.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

403 response
1 participant