Comments (6)
Same issue trying to launch on Windows docker.
from whatsapp-http-api.
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.
Trying it on a VM, have issues on QR code.
from whatsapp-http-api.
same problem
from whatsapp-http-api.
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.
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)
- [Feature Request] Get only groups WID instead of all group data
- [BUG][WEBJS] - reply to a message via api is not working on some numbers HOT 2
- [BUG][WEBJS] - Internal server error - ProtocolError: Protocol error (Runtime.callFunctionOn)
- [Feature Request] Kubernetes support HOT 3
- My WhatsApp Business number got bannned by whatsapp HOT 1
- [feature] Upload chromium profile via request PUT /api/{session}/profile HOT 1
- [BUG][NOWEB] - Internal server error - assertNodeErrorFree HOT 4
- [Feature Request] Support for Channels HOT 2
- [BUG][NOWEB] - When using "Get chat presence" feature , sometimes get null value for last seen HOT 2
- [Feature Request][NOWEB] - Add sendContactVcard HOT 2
- [BUG][WEBJS] - I'm not getting anything webhooks HOT 6
- [BUG][WEBJS] - Bans in case of simultaneous mailing from several accounts HOT 2
- [BUG][WEBJS] - Unable to Reply to a message
- [Bug] WEBJS - monitor page close event
- Appear online[Feature Request] HOT 2
- Multiline text messages? HOT 1
- No matching manifest for linux/arm64/v8 in the manifest list entries HOT 1
- [BUG][NOWEB] - Get error response when invite to group
- Mouse movement/scroll simulation?[Feature Request]
- /api/messages - API not returning all the messages in a chat HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from whatsapp-http-api.