Skip to content

IDB Database Closing Issue #2014

Closed
Closed
@manish-snappe

Description

@manish-snappe

Description

I am frequently getting this error and then the WhatsApp get disconnected. Any idea where I might be going wrong

Error [InvalidStateError]: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.

Environment

  • WPPConnect version(s): 1.28.4
  • MultiDevice (BETA): yes

Steps to Reproduce

Log Output

Error [InvalidStateError]: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.
at C:\Projects\ServerWA\node_modules@wppconnect-team\wppconnect\dist\api\helpers\evaluate-and-return.js:107:31
at step (C:\Projects\ServerWA\node_modules@wppconnect-team\wppconnect\dist\api\helpers\evaluate-and-return.js:49:23)
at Object.next (C:\Projects\ServerWA\node_modules@wppconnect-team\wppconnect\dist\api\helpers\evaluate-and-return.js:30:53)
at fulfilled (C:\Projects\ServerWA\node_modules@wppconnect-team\wppconnect\dist\api\helpers\evaluate-and-return.js:21:58)
at runMicrotasks ()
at processTicksAndRejections (node:internal/process/task_queues:96:5)
JS Stack: Error: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.
at we.create (https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:38839)
at https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:30282
at https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:15228
at je (https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:10440)
at Ye (https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:11197)
at Be (https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:11048)
Function: function (_a) {
var to = _a.to, content = _a.content, options = _a.options;
return WPP.chat.sendTextMessage(to, content, __assign(__assign({}, options), { waitForAck: true }));
} {
_e: {
name: 'Error',
message: '',
stack: 'Error\n' +
' at z (https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:4041)\n' +
' at new r (https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:5569)\n' +
' at Ae.rejectionMapper (https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:56931)\n' +
' at Ue (https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:9711)\n' +
' at je (https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:10613)\n' +
' at Ye (https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:11197)\n' +
' at Be (https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:11048)'
},
inner: {
name: 'InvalidStateError',
message: "Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.",
stack: "Error: Failed to execute 'transaction' on 'IDBDatabase': The database connection is closing.\n" +
' at we.create (https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:38839)\n' +
' at https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:30282\n' +
' at https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:15228\n' +
' at je (https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:10440)\n' +
' at Ye (https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:11197)\n' +
' at Be (https://web.whatsapp.com/vendor1~app.4802d7adf05a55e9c1dc.js:7:11048)'
}
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions