claude-api-py icon indicating copy to clipboard operation
claude-api-py copied to clipboard

can't get organizations uuid info when I ran the example.py

Open godblessbb opened this issue 2 years ago • 3 comments

Traceback (most recent call last): File "/Users/bicaihua/PycharmProjects/Weibo/weibo-crawler/Claude_Copilot.py", line 109, in main() File "/Users/bicaihua/PycharmProjects/Weibo/weibo-crawler/Claude_Copilot.py", line 30, in main claude_obj = claude_wrapper.ClaudeWrapper(client, organizations[0]['uuid']) # type: ignore TypeError: 'NoneType' object is not subscriptable

error like above. how to solve this?

godblessbb avatar Aug 19 '23 12:08 godblessbb

the owner is trying to fix the error, for sometime try this: https://github.com/KoushikNavuluri/Claude-API

Randomboiii03 avatar Aug 21 '23 11:08 Randomboiii03

Hello, I recently improved the existing solutions, by fixing header consistency, adding auto session gathering using Firefox login and selenium, and auto user agent retrieval along with timezone.

My unofficial version of the API does currently work like a charm, it supports chat creation/deletion/retrieval and messages with attachments (with all the supported file types). It also let you handle a MessageRateLimit exception that provides you with the amount of seconds to sleep before next rateReset.

Come have a try! Leave a :star: if you can : )

https://github.com/st1vms/unofficial-claude2-api

st1vms avatar Aug 23 '23 09:08 st1vms

@godblessbb @Randomboiii03 let me know if it works now. Usually its a problem with headers/cookies.

AshwinPathi avatar Mar 06 '24 09:03 AshwinPathi