Comments (11)
@martinmineo hi!
I think the bug is related to chromium, but I can not test it and properly debug (don't have Macbook pro M1).
We probably will have to support two version of docker image - like devlikeapro/whatsapp-http-api:arm
Please feel free to open pull requests with the issue's fix!
If anyone else encountered the same issue - please hit thumb up 👍 on the first comment - we'll know how many of people experience the issue.
from whatsapp-http-api.
@allburov I wish I knew how to fix it!
from whatsapp-http-api.
@martinmineo btw, for Mac users the easiest way to work with the project - purchase a VPS with 2CPU and Ubuntu (I tried with 1CPU but it's too slow)
In DigitalOcean it costs about $24 https://www.digitalocean.com/
from whatsapp-http-api.
Yes, I will do something like that!
For testing purposes, I used another computer with an Intel processor and it works great! Amazing job!!
from whatsapp-http-api.
Hi!
We've published tags for ARM architecture - devlikeapro/whatsapp-http-api:arm
and devlikeapro/whatsapp-http-api-plus:arm
There's a note how to install the right docker image
@martinmineo could you try this one on your Mac when you have time please?
from whatsapp-http-api.
Hi! It seems that there's still something to be fixed
Note: I'm using the PLUS version
{
"statusCode": 500,
"timestamp": "2023-02-28T11:45:55.359Z",
"exception": {
"stack": "Error: Evaluation failed: Error: wid error: invalid wid\n at new c (https://web.whatsapp.com/app.208e5a49d844a8c35245.js:68:45641)\n at Object.s [as createWid] (https://web.whatsapp.com/app.208e5a49d844a8c35245.js:68:50862)\n at __puppeteer_evaluation_script__:2:53\n at ExecutionContext._evaluateInternal (/app/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:221:19)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)\n at async ExecutionContext.evaluate (/app/node_modules/whatsapp-web.js/node_modules/puppeteer/lib/cjs/puppeteer/common/ExecutionContext.js:110:16)\n at async Client.sendMessage (/app/node_modules/whatsapp-web.js/src/Client.js:686:28)\n at async /app/node_modules/@nestjs/core/router/router-execution-context.js:46:28\n at async /app/node_modules/@nestjs/core/router/router-proxy.js:9:17",
"message": "Evaluation failed: Error: wid error: invalid wid\n at new c (https://web.whatsapp.com/app.208e5a49d844a8c35245.js:68:45641)\n at Object.s [as createWid] (https://web.whatsapp.com/app.208e5a49d844a8c35245.js:68:50862)\n at __puppeteer_evaluation_script__:2:53",
"name": "Error"
},
"request": {
"path": "/api/sendText",
"method": "POST",
"body": {
"chatId": "XXXXXXXXXXXX.us",
"text": "Hi there!",
"session": "my-session"
},
"query": {}
},
"version": {
"version": "2023.3.1",
"tier": "PLUS",
"browser": "/usr/bin/chromium"
}
}
from whatsapp-http-api.
@martinmineo Could you check the chatId that you used there? It looks like it contains + at the start
I've put it in format [email protected]
(where 123123123 is my real number) and it works, but with [email protected]
it showed the same error, invalid wid
The same happens when you put a random number, like [email protected]
from whatsapp-http-api.
It's not including the "+", this is the body I used (I will change some numbers with "X" to keep privacy)
"body": {
"chatId": "54XXXXXXXXX68.us",
"text": "Hi there!",
"session": "54XXXXXXXXXX33"
},
from whatsapp-http-api.
ooooh I've realized that there's a missing "@c." in the chatId
I will try again
from whatsapp-http-api.
yes! It's working fine now. Thank you very much for adding this feature :)
from whatsapp-http-api.
@martinmineo thank you for testing the feature!
from whatsapp-http-api.
Related Issues (20)
- [BUG][NOWEB] - Attachment: file.data & file.url is not working HOT 2
- Stop session when QR is not valid (after some 3-4 QRs) HOT 2
- About protecting starting a session with the same name HOT 2
- [BUG][WEBJS] - GitHub Connection Error in Webhook Configuration: ECONNREFUSED When Fetching Version Information HOT 2
- [Feature Request] (Web) Get labels and get contacts by label id
- [Feature Request] [Dashboard] - show environment variables for server
- [Feature Request] Improving the status sending feature HOT 6
- [BUG][WEBJS] - Unable to send video HOT 4
- Get contact info for NOWEB HOT 1
- [BUG][NOWEB] - Send document with caption doesn't receive the download link
- Group Message Sent by participants Delete for Everyone
- [BUG][NOWEB] - Session is automatically logout just after login and mostly session are failed to start HOT 2
- [Feature Request][NOWEB] - Set the session name on personal Whatsapp on your cell phone. HOT 1
- [Feature Request][NOWEB] - Is it possible to remove the Whatsapp session on the device when logging out? HOT 1
- [BUG][WEBJS] - Issue in posting to /api/sendVideo HOT 15
- [BUG][NOWEB] - Webhook when viewing status not working HOT 2
- [BUG][WEBJS] - QR scan issue HOT 7
- [BUG][WEBJS] - get /api/session/chats takes too long HOT 2
- [Feature Request] add reply,delete,edit message and caption for NOWEB
- [BUG] - GET /api/sessions/{name}/ - return 404 if session is not found
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.