canove / whaticket-community

A very simple Ticket System based on WhatsApp messages, that allow multi-users in same WhatsApp account.
MIT License
1.58k stars 802 forks source link

Error adding connection #436

Closed almando closed 2 years ago

almando commented 2 years ago

Error adding new conection

errno: -39,
  syscall: 'rmdir',
  code: 'ENOTEMPTY',
  path:
   '/home/user/containers/whaticket/backend/.wwebjs_auth/session-bd_9' }
Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
    at CDPSession.send (/home/user/containers/whaticket/backend/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:218:35)
    at ExecutionContext._evaluateInternal (/home/user/containers/whaticket/backend/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:204:50)
    at ExecutionContext.evaluate (/home/user/containers/whaticket/backend/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:27)
    at DOMWorld.evaluate (/home/user/containers/whaticket/backend/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:97:24)
Error: Protocol error (Runtime.callFunctionOn): Session closed. Most likely the page has been closed.
    at CDPSession.send (/home/user/containers/whaticket/backend/node_modules/puppeteer/lib/cjs/puppeteer/common/Connection.js:218:35)
    at ExecutionContext._evaluateInternal (/home/user/containers/whaticket/backend/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:204:50)
    at ExecutionContext.evaluate (/home/user/containers/whaticket/backend/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:27)
    at DOMWorld.evaluate (/home/user/containers/whaticket/backend/node_modules/puppeteer/lib/cjs/puppeteer/common/DOMWorld.js:97:24)
Error: Evaluation failed: TypeError: Cannot read properties of undefined (reading 'map')
    at Object.window.WWebJS.getChats (__puppeteer_evaluation_script__:350:36)
    at __puppeteer_evaluation_script__:2:40
    at ExecutionContext._evaluateInternal (/home/user/containers/whaticket/backend/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19)
    at process._tickCallback (internal/process/next_tick.js:68:7)
YosefAdPro commented 2 years ago

See the solution here https://whaticket.online/d/158-erro-nodemon-app-crashed/8

stale[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.