Closed ahmedRSA closed 1 year ago
any help/?
@ahmedRSA sorry for the late reply Will take a look into it soon Never used postgres so yeah... this will be interesting
Btw just from first looks
It looks like somethings with the encoding wrong
As you can see here https://github.com/deadlinecode/baileys-bottle/blob/27f45074f246d31b7cacf6ff1138795d5d3f423c/src/index.ts#L38 we use the charset cp1251_general_ci
I don't know exactly how postgres works but try also using a compatible charset UTF-8 won't work since you will have something like emojis which are unicode
As soon i scan QR this error comes
Bottle config
Full Error Log
> /home/ahmed/wabot/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:211 > throw new QueryFailedError_1.QueryFailedError(query, parameters, err); > ^ > > QueryFailedError: invalid byte sequence for encoding "UTF8": 0xde 0x20 > at PostgresQueryRunner.query (/home/ahmed/wabot/node_modules/typeorm/driver/postgres/PostgresQueryRunner.js:211:19) > at runMicrotasks (
Node Version :
v17.2.0
Baileys Version :^4.4.0
Baileys Bottle Version :1.0.2
Pg Version :8.8.0
let me know if more info is needed