GithubHelp home page GithubHelp logo

Comments (23)

allburov avatar allburov commented on September 20, 2024

Hi! Could you run the session with config.debug: True flag in the request and send logs here please 🙏
https://waha.devlike.pro/docs/how-to/sessions/#enable-debug

patron:PRO

from whatsapp-http-api.

5and0 avatar 5and0 commented on September 20, 2024

Used the following to start the session and I am not seeing anything more in addition to above ....

{
"name": "default",
"status": "STARTING",
"config": {
"debug": true
}
}

patron:PLUS

from whatsapp-http-api.

allburov avatar allburov commented on September 20, 2024

Just published a new version. 2024.5.1, could you update and test this one?

patron:PRO

from whatsapp-http-api.

5and0 avatar 5and0 commented on September 20, 2024

Same issue sadly ... recreated the container and still seeing the same problem.

patron:PLUS

from whatsapp-http-api.

allburov avatar allburov commented on September 20, 2024

Hi! Sorry for asking dump question, but could you try to run a different session, like default2

{
  "name": "default2",
  "config": {
    "proxy": null,
    "webhooks": [
      {
        "url": "https://httpbin.org/post",
        "events": [
          "message",
          "session.status"
        ],
        "hmac": null,
        "retries": null,
        "customHeaders": null
      }
    ],
    "debug": false
  }
}

patron:PRO

from whatsapp-http-api.

5and0 avatar 5and0 commented on September 20, 2024

[ { "name": "default", "status": "STARTING", "config": { "debug": true }, "me": null, "engine": { "engine": "WEBJS" } }, { "name": "default2", "status": "STARTING", "config": { "proxy": null, "webhooks": [ { "url": "https://httpbin.org/post", "events": [ "message", "session.status" ], "hmac": null, "retries": null, "customHeaders": null } ], "debug": false }, "me": null, "engine": { "engine": "WEBJS" } } ]

patron:PLUS

from whatsapp-http-api.

5and0 avatar 5and0 commented on September 20, 2024

Still stuck starting ...

patron:PLUS

from whatsapp-http-api.

allburov avatar allburov commented on September 20, 2024

What is your country for the phone number and where your server is?

patron:PRO

from whatsapp-http-api.

5and0 avatar 5and0 commented on September 20, 2024

+61, Australia

patron:PLUS

from whatsapp-http-api.

allburov avatar allburov commented on September 20, 2024

@5and0 what the /screenshot shows when it's in STARTING status btw, didn't find it in the messages?

patron:PRO

from whatsapp-http-api.

allburov avatar allburov commented on September 20, 2024

Likely relates to #296

patron:PRO

from whatsapp-http-api.

5and0 avatar 5and0 commented on September 20, 2024

image

patron:PLUS

from whatsapp-http-api.

5and0 avatar 5and0 commented on September 20, 2024

That is after it’s been running for a while.. initially I get…

{ "statusCode": 500, "timestamp": "2024-05-04T02:07:33.531Z", "exception": { "stack": "ProtocolError: Protocol error (Page.captureScreenshot): Cannot take screenshot with 0 width.\n at /app/node_modules/whatsapp-web.js/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:329:24\n at new Promise (<anonymous>)\n at CDPSessionImpl.send (/app/node_modules/whatsapp-web.js/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Connection.js:325:16)\n at CDPPage._CDPPage_screenshotTask (/app/node_modules/whatsapp-web.js/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js:2591:77)\n at process.processTicksAndRejections (node:internal/process/task_queues:95:5)", "name": "ProtocolError", "originalMessage": "Cannot take screenshot with 0 width.", "message": "Protocol error (Page.captureScreenshot): Cannot take screenshot with 0 width." }, "request": { "path": "/api/screenshot?session=default", "method": "GET", "body": {}, "query": { "session": "default" } }, "version": { "version": "2024.5.1", "engine": "WEBJS", "tier": "PLUS", "browser": "/usr/bin/chromium" } }

patron:PLUS

from whatsapp-http-api.

allburov avatar allburov commented on September 20, 2024

Sorry for asking, did you try to completely remove .sessions folder? Or may be connect a new folder, .sessions2

As long as WhatsApp Web itself is loading, nothing we can do here :(

patron:PRO

from whatsapp-http-api.

allburov avatar allburov commented on September 20, 2024

Enough CPU and free Memory, right? Just wanna make sure it's not usual problems :)

patron:PRO

from whatsapp-http-api.

5and0 avatar 5and0 commented on September 20, 2024

Yes. Did both. Will try again tonight. Tried different engine as well.

patron:PLUS

from whatsapp-http-api.

5and0 avatar 5and0 commented on September 20, 2024

Enough CPU and free Memory, right? Just wanna make sure it's not usual problems :)

patron:PRO

Yes

patron:PLUS

from whatsapp-http-api.

allburov avatar allburov commented on September 20, 2024

One more thing to try - using chrome based (not chromium) docker image

https://waha.devlike.pro/docs/how-to/engines/#docker-images

This one:

devlikeapro/whatsapp-http-api-plus:chrome

May be it's some sort of bug in chromium + whatsapp web

patron:PRO

from whatsapp-http-api.

allburov avatar allburov commented on September 20, 2024

@5and0 is the account old one or new? With old one it can have too many messages in it, so syncing takes long (weird tho, we should get some logs there in that case)

patron:PRO

from whatsapp-http-api.

5and0 avatar 5and0 commented on September 20, 2024

@5and0 is the account old one or new? With old one it can have too many messages in it, so syncing takes long (weird tho, we should get some logs there in that case)

patron:PRO

Old account, but not even getting to the point of logging in, so not sure how that would impact at this point.

patron:PLUS

from whatsapp-http-api.

5and0 avatar 5and0 commented on September 20, 2024

Ok ... got it working with :chrome and version 2024.5.3 ... if I switch back to chromium I notice version is 2024.5.2 even after removing and pulling latest image.

patron:PLUS

from whatsapp-http-api.

5and0 avatar 5and0 commented on September 20, 2024

I'm also getting this at the top of the conversation list ...
image

patron:PLUS

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.