You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using the bot with the Baileys provider and the experimentalStore configuration enabled, incoming calls cause an issue where the bot automatically rejects subsequent calls.
The problem is linked to the following line of code:
// Optional: Automatically reject the call awaitthis.vendor.rejectCall(call.id,call.from);
Disabling this line minimizes the issue, as subsequent calls are no longer automatically rejected. However, this workaround is not ideal, as calls should be handled appropriately without breaking the bot's functionality.
Additionally, the following error log is generated when the issue occurs:
Error: Can't add new command when connection is in closed state
at Connection._addCommandClosedState (/home/builderbot/htdocs/app/base-ts-baileys-mysql/node_modules/mysql2/lib/connection.js:148:17)
at Connection.query (/home/builderbot/htdocs/app/base-ts-baileys-mysql/node_modules/mysql2/lib/connection.js:546:17)
at /home/builderbot/htdocs/app/base-ts-baileys-mysql/node_modules/@builderbot/database-mysql/dist/index.cjs:20:25
at new Promise (<anonymous>)
at MysqlAdapter.getPrevByNumber (/home/builderbot/htdocs/app/base-ts-baileys-mysql/node_modules/@builderbot/database-mysql/dist/index.cjs:18:26)
at CoreClass.handleMsg (/home/builderbot/htdocs/app/base-ts-baileys-mysql/node_modules/@builderbot/bot/dist/index.cjs:14021:49)
at EventEmitter.func (/home/builderbot/htdocs/app/base-ts-baileys-mysql/node_modules/@builderbot/bot/dist/index.cjs:13999:33)
at EventEmitter.emit (node:events:524:28)
at BaileysProvider.emit (/home/builderbot/htdocs/app/base-ts-baileys-mysql/node_modules/@builderbot/bot/dist/index.cjs:30:22)
at EventEmitter.func (/home/builderbot/htdocs/app/base-ts-baileys-mysql/node_modules/@builderbot/provider-baileys/dist/index.cjs:30904:30) {
fatal: true
}
This issue might be related to the lack of a routine to properly close or reset the socket in this "resource-saving" mode (experimentalStore). This could leave the connection in an invalid state after rejecting a call.
Please let me know if further details or debugging information is required!
Reproducir error
No response
Información Adicional
No response
The text was updated successfully, but these errors were encountered:
¿Que versión estas usando?
v2
¿Sobre que afecta?
Otro
Describe tu problema
Description:
When using the bot with the Baileys provider and the
experimentalStore
configuration enabled, incoming calls cause an issue where the bot automatically rejects subsequent calls.The problem is linked to the following line of code:
Disabling this line minimizes the issue, as subsequent calls are no longer automatically rejected. However, this workaround is not ideal, as calls should be handled appropriately without breaking the bot's functionality.
Additionally, the following error log is generated when the issue occurs:
This issue might be related to the lack of a routine to properly close or reset the socket in this "resource-saving" mode (
experimentalStore
). This could leave the connection in an invalid state after rejecting a call.Please let me know if further details or debugging information is required!
Reproducir error
No response
Información Adicional
No response
The text was updated successfully, but these errors were encountered: