GithubHelp home page GithubHelp logo

Comments (11)

allburov avatar allburov commented on May 23, 2024 1

@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.

martinmineo avatar martinmineo commented on May 23, 2024

@allburov I wish I knew how to fix it!

from whatsapp-http-api.

allburov avatar allburov commented on May 23, 2024

@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.

martinmineo avatar martinmineo commented on May 23, 2024

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.

allburov avatar allburov commented on May 23, 2024

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.

martinmineo avatar martinmineo commented on May 23, 2024

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.

allburov avatar allburov commented on May 23, 2024

@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.

martinmineo avatar martinmineo commented on May 23, 2024

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.

martinmineo avatar martinmineo commented on May 23, 2024

ooooh I've realized that there's a missing "@c." in the chatId

I will try again

from whatsapp-http-api.

martinmineo avatar martinmineo commented on May 23, 2024

yes! It's working fine now. Thank you very much for adding this feature :)

from whatsapp-http-api.

allburov avatar allburov commented on May 23, 2024

@martinmineo thank you for testing the feature!

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.