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

Unable to connect #120

Open
Sweeistaken opened this issue Oct 9, 2024 · 1 comment
Open

Unable to connect #120

Sweeistaken opened this issue Oct 9, 2024 · 1 comment

Comments

@Sweeistaken
Copy link

Sweeistaken commented Oct 9, 2024

Hello, I have tried to use pycai's (not AIOCai) connect() on another computer with using my Guilded bot. though on another computer, I get the error message here

image
(Note: the output is reversed)

I'm using characterai==1.0.0 and websockets==13.1

This machine is running Debian testing.

The previous machine used websockets==12.0 and characterai==1.0.0 and runs Debian 12 stable.

I have downgraded the modules and still have the same issue.

Code:

from characterai import pycai
client = guilded.Client()
#C.AI
caitoken = os.environ["CAItoken"]
caibot= os.environ["CAImodel"]
while True:
    try:
        cai = pycai.Client(caitoken)
        me = cai.get_me()
        chat = cai.connect()
        chats = []
        break
    except:
        print(traceback.format_exc())
@Sweeistaken
Copy link
Author

If I go ahead and remove the init parameter, it throws a 403 error from the web socket.

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

No branches or pull requests

1 participant