matrixgpt / matrix-chatgpt-bot

Talk to ChatGPT via any Matrix client!
GNU Affero General Public License v3.0
230 stars 64 forks source link

Room key error. I will leave the room, please reinvite me! #275

Open kumarunster opened 4 months ago

kumarunster commented 4 months ago

Hello,

after some time using ChatGPT in a room, it just left the room with that error message.

Reinviting him shows following:

bot.chatgpt
👋 Hello, I'm ChatGPT bot! Matrix E2EE: true
Room key error. I will leave the room, please reinvite me!
bot.chatgpt left the room

After that, the bot cannot be added into that room anymore. We have to create a separate new Room and invite him there. Does someone know what is the reason for that behaviour and how could it be fixed?

bertybuttface commented 4 months ago

This was a hacky fix for some E2EE issues we were having, quickest fix is probably to delete the user on the matrix server and recreate, you will also need to clear the matrix part of the storage folder (don't clear the ChatGPT part if you care about old conversations).

kumarunster commented 4 months ago

you will also need to clear the matrix part of the storage folder

could you explain more?

my folder structure looks like this:

/app_data/matrix/chatgpt$ tree .
.
├── config
│   └── env
└── data
    ├── chatgpt-bot-api.json
    ├── chatgpt-bot-storage.json
    ├── encrypted
    │   ├── bot-sdk.json
    │   └── matrix-sdk-crypto
    │       ├── blobs
    │       ├── conf
    │       ├── db
    │       └── snap.0000000001E98C0D
    └── home
bertybuttface commented 4 months ago

Delete everything but: . └── data ├── chatgpt-bot-api.json