vasani-arpit / WBOT

A simple Web based BOT for WhatsApp™ in NodeJS 😜. Working as of 📅 Feb 4th, 2024
Other
989 stars 314 forks source link

macOS: App not starting up while running locally #328

Open r1jsheth opened 2 years ago

r1jsheth commented 2 years ago

Describe the bug Exact error message below: I have done JSON.stringify(error). Otherwise it was [Object object]

Looks like you got an error. {"target":{"_events":{},"_eventsCount":2,"readyState":3,"protocol":"","_binaryType":"nodebuffer","_closeFrameReceived":false,"_closeFrameSent":false,"_closeMessage":""}
Can't create shreenshot, X11 not running?. TypeError: Cannot read properties of undefined (reading 'screenshot')
ErrorEvent {
  target: WebSocket {
    _events: [Object: null prototype] { open: [Function], error: [Function] },
    _eventsCount: 2,
    _maxListeners: undefined,
    readyState: 3,
    protocol: '',
    _binaryType: 'nodebuffer',
    _closeFrameReceived: false,
    _closeFrameSent: false,
    _closeMessage: '',
    _closeTimer: null,
    _closeCode: 1006,
    _extensions: {},
    _receiver: null,
    _sender: null,
    _socket: null,
    _isServer: false,
    _redirects: 0,
    url: 'ws://127.0.0.1:57865/devtools/browser/ba7cb0f7-c103-4623-96cc-1147ccb52430',
    _req: null,
    [Symbol(kCapture)]: false
  },
  type: 'error',
  message: 'socket hang up',
  error: Error: socket hang up
      at connResetException (node:internal/errors:692:14)
      at Socket.socketOnEnd (node:_http_client:478:23)
      at Socket.emit (node:events:539:35)
      at endReadableNT (node:internal/streams/readable:1345:12)
      at processTicksAndRejections (node:internal/process/task_queues:83:21) {
    code: 'ECONNRESET'
  }
}
Don't worry errors are good. They help us improve. A screenshot has already been saved as error.png in current directory. Please mail it on vasani.arpit@gmail.com along with the steps to reproduce.

node:internal/process/promises:279
            triggerUncaughtException(err, true /* fromPromise */);
            ^

[UnhandledPromiseRejection: This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). The promise r{
  code: 'ERR_UNHANDLED_REJECTION'
}

To Reproduce Steps to reproduce the behavior:

  1. Clone Repository
  2. Checkout master branch.
  3. Run app using node src/index

Expected behavior Ideally it should work

Screenshots Check error message.

App information (please complete the following information):

vasani-arpit commented 2 years ago

Should be fixed in v0.29.0 https://github.com/vasani-arpit/WBOT/releases

Please check and let me know.