-
Notifications
You must be signed in to change notification settings - Fork 134
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
claude_api.send_message() error #77
Comments
I tried to use US VPN and changed the cookie but got the same error |
It works for me though, can you give more detailed info? |
That's the error that I get, I tried the API on google colab and got the same thing as well :
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/claude_api.py", line 129, in send_message |
remove the |
Possible causes: 1, this is because the proxy region is not allowed to provide services 2, the transmission of an incorrect parameter, such as "model" in "headers" should be updated to the same version as the web page. |
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/site-packages/claude_api.py", line 129, in send_message
data = json.loads(json_str)
^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/init.py", line 346, in loads
return _default_decoder.decode(s)
^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 337, in decode
obj, end = self.raw_decode(s, idx=_w(s, 0).end())
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/Library/Frameworks/Python.framework/Versions/3.11/lib/python3.11/json/decoder.py", line 355, in raw_decode
raise JSONDecodeError("Expecting value", s, err.value) from None
json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)
The text was updated successfully, but these errors were encountered: