-
-
Notifications
You must be signed in to change notification settings - Fork 40
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
403 response #24
Comments
Hi, like I mentioned last time, can you share the output of https://claude.ai/api/organizations from your browser? |
Sure:
|
Please retry with 0.4.0 |
Error is still present:
|
Please download the latest version by running
After that, post the output here so I can assist you further. Thank you! |
Ok tried with 0.4.1 didn't work, can't login now but it seems to be because now to have successful login orgs need to be listed. Heres the debug stuff:
|
Can you successfully execute the curl command in your terminal? curl -H 'User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0' \
-H 'Cookie: sessionKey=sk-ant-xxx' \
-H 'Content-Type: application/json' \
https://claude.ai/api/organizations |
No I get an error:
|
Please open your browser’s developer tools and navigate to https://claude.ai. Create a new project and upload a file to it. Could you then share the request and response headers from this process? |
To make the project (from the POST request to https://api.claude.ai/api/organizations/xxx/projects):
Response headers:
When uploading a file (POST to https://api.claude.ai/api/organizations/xxx/projects/xxx/docs):
Response:
|
I’m not certain if this will resolve your issue, but you might want to try the latest release: v0.4.7. It includes recent updates that could address the problem you're experiencing. |
OS: Ubuntu 24.04
|
I've consistently reproduced this issue with all Python versions later than 3.11.3. To avoid this problem, please install Python 3.11.3 and use the "claude.ai" provider instead of "claude.ai-curl" for optimal performance. If you use the "claude.ai-curl" provider, you may encounter error 43 due to this issue. Upgrading curl should resolve that error but that provider will eventually be deprecated. # Specify the Python version as a build argument
ARG PYTHON_VERSION=3.11.3
# Use the official Python image as a base, parameterized by the Python version
FROM python:${PYTHON_VERSION}-slim
# Set the working directory in the container
WORKDIR /app
# Copy the requirements file into the container
COPY requirements.txt .
# Install the dependencies and claudesync
RUN pip install --no-cache-dir -r requirements.txt && \
pip install --no-cache-dir claudesync
# Copy the application code into the container
COPY . .
# Create the .claudesync directory
RUN mkdir -p /root/.claudesync
# Create and populate the config.json file
RUN echo '{ \
"session_key": "session-key-here", \
"session_key_expiry": "2099-09-13T22:42:50", \
"active_provider": "claude.ai", \
"active_organization_id": "your_org_id_here", \
"active_project_id": "your_project_id_here", \
"active_project_name": "Your Project Name", \
"local_path": "/app" \
}' > /root/.claudesync/config.json
# Set the command to run claudesync organization ls
CMD claudesync organization ls && echo "ClaudeSync setup successful" || (echo "ClaudeSync setup failed" && exit 1) |
This issue has been marked as stale due to 14 days of inactivity. Please remove the stale label or comment to keep it open, otherwise, it will be closed in 3 days. |
lastest version produces 403
|
@ayushin This Dockerfile successfully outputs my organization. Please confirm it works for you. |
This issue has been marked as stale due to 14 days of inactivity. Please remove the stale label or comment to keep it open, otherwise, it will be closed in 3 days. |
m1 The latest version appears |
Thank you for reporting this issue. To assist you effectively, please:
Without this information, I cannot diagnose or resolve the problem. If you need clarification on any point, please ask. |
I am having an issue where after successfully logging in, doing claudesync organization ls(or select) on mac(v14.6) results in an error.
Commands (reinstall to show newest version):
Curl is installed:
The text was updated successfully, but these errors were encountered: