GithubHelp home page GithubHelp logo

Comments (6)

lascimmia avatar lascimmia commented on May 23, 2024

Same issue trying to launch on Windows docker.

from whatsapp-http-api.

lascimmia avatar lascimmia commented on May 23, 2024

Same issue trying to launch on Windows docker.

To be more specific:

I launch the docker via docker run -it -v %cd%/tokens:/app/tokens -p 127.0.0.1:3000:3000/tcp allburov/whatsapp-http-api , and it starts fine, docs on Swaggers is up and running, and some commands (like getWAVersion) just works fine.
When I try to send a message trough:

curl -d "{\"chatId\": \"[email protected]\", \"text\": \"Hello from WhatsApp HTTP API Free\" }" -H "Content-Type: application/json" -X POST http://localhost:3000/api/sendText

it does nothing, but logs like:

WhatsApp HTTP API is running on: http://[::1]:3000
(node:27) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read property 'get' of undefined
    at Object.window.WAPI.window.WAPI.sendMessage (/app/node_modules/venom-bot/dist/lib/wapi/wapi.js:1:35932)
    at __puppeteer_evaluation_script__:3:53
    at ExecutionContext._evaluateInternal (/app/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:27) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). (rejection id: 1)
(node:27) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
(node:27) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read property 'get' of undefined
    at Object.window.WAPI.window.WAPI.sendMessage (/app/node_modules/venom-bot/dist/lib/wapi/wapi.js:1:35932)
    at __puppeteer_evaluation_script__:3:53
    at ExecutionContext._evaluateInternal (/app/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)
    at process._tickCallback (internal/process/next_tick.js:68:7)
(node:27) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). (rejection id: 2)

Take note that on launching Venom it warns with:

┌─────────────────────────────────────────────────────┐
│                                                     │
│   There is a new version of Venom 2.2.3 ➜  3.0.21   │
│   Update your package by running:                   │
│                                                     │
│   > npm update venom-bot                            │
│                                                     │
└─────────────────────────────────────────────────────┘

In any case, thanks a lot for your work!

from whatsapp-http-api.

lascimmia avatar lascimmia commented on May 23, 2024

Trying it on a VM, have issues on QR code.

QR Code

from whatsapp-http-api.

webparadoxer avatar webparadoxer commented on May 23, 2024

same problem

from whatsapp-http-api.

webparadoxer avatar webparadoxer commented on May 23, 2024

Error: Evaluation failed: TypeError: Cannot read property 'attributes' of undefined
at Object.window.WAPI.window.WAPI.getHost (/app/node_modules/venom-bot/dist/lib/wapi/wapi.js:1:55001)
at puppeteer_evaluation_script:1:28
at ExecutionContext._evaluateInternal (/app/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:26) UnhandledPromiseRejectionWarning: Error: Evaluation failed: TypeError: Cannot read property 'get' of undefined
at Object.window.WAPI.window.WAPI.sendMessage (/app/node_modules/venom-bot/dist/lib/wapi/wapi.js:1:35932)
at puppeteer_evaluation_script:3:53
at ExecutionContext._evaluateInternal (/app/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:217:19)
at process._tickCallback (internal/process/next_tick.js:68:7)
(node:26) UnhandledPromiseRejectionWarning: Unhandled promise rejection. 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(). (rejection id: 1)
(node:26) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

from whatsapp-http-api.

allburov avatar allburov commented on May 23, 2024

Could you try to use a version without docker?
The fork uses the latest venom https://github.com/diazzaid/whatsapp-api-venom

from whatsapp-http-api.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.