-
Notifications
You must be signed in to change notification settings - Fork 80
Open
Description
I can guarantee the token is correct.
But the issue:
Traceback (most recent call last):
File "/fred/oz401/zdeng/MentalShield/test_alignment.py", line 243, in <module>
asyncio.run(main())
File "/fred/oz339/zdeng/.conda/envs/my_env/lib/python3.10/asyncio/runners.py", line 44, in run
return loop.run_until_complete(main)
File "/fred/oz339/zdeng/.conda/envs/my_env/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/fred/oz401/zdeng/MentalShield/test_alignment.py", line 117, in main
initial_response = await agent.initialize()
File "/fred/oz401/zdeng/MentalShield/persona_agent.py", line 42, in initialize
async with await self.client.connect() as chat:
File "/fred/oz401/zdeng/MentalShield/CharacterAI/characterai/aiocai/methods/chat2.py", line 440, in __call__
return await self.__aenter__(self.token)
File "/fred/oz401/zdeng/MentalShield/CharacterAI/characterai/aiocai/methods/chat2.py", line 455, in __aenter__
raise ServerError('Wrong token')
characterai.errors.ServerError: Wrong token
I think this is error in chat.py from:
self.ws = await websockets.connect(
'wss://neo.character.ai/ws/',
extra_headers={
'Cookie': cookie
}
)
dmytro-varich
Metadata
Metadata
Assignees
Labels
No labels