guyzyl / whatsapp-contact-sync

Easy way to sync between the contact photos on WhatsApp to Google Contacts
https://whasync.com/
Other
175 stars 19 forks source link

WhatsApp QR code doesn't load #169

Open yonka2019 opened 3 months ago

guyzyl commented 3 months ago

Can you add some more info? On whasync.com or locally? Has that happened once, or have you tried multiple times?

yonka2019 commented 3 months ago

on whasync, i tried multiple times, yesterday its not even loaded the QR

guyzyl commented 3 months ago

I just tried myself and everything seems to be working. For how long did you wait? The QR can take a few seconds to load sometimes.

guyzyl commented 3 months ago

OK, I was able to reproduce the issue! I'l look into it.

Error: Navigation failed because browser has disconnected!
    at new LifecycleWatcher (/app/server/node_modules/puppeteer-core/lib/cjs/puppeteer/common/LifecycleWatcher.js:95:223)
    at Frame.goto (/app/server/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Frame.js:204:25)
    at CDPPage.goto (/app/server/node_modules/puppeteer-core/lib/cjs/puppeteer/common/Page.js:1083:91)
    at Client.initialize (/app/server/node_modules/whatsapp-web.js/src/Client.js:334:20)
    at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
yonka2019 commented 3 months ago

tested now - works good, thanks

guyzyl commented 3 months ago

Re-opening since there's still a bug that caused this issue

mrzcn commented 3 months ago

I have the same issue. I tried a few more times and was able to scan the QR code a few times, then started syncing, but not actually. Are you sure https://whasync.com/ is working? I tried mobile and PC, not change.

guyzyl commented 3 months ago

I just tested again and it worked for me, but that doesn't mean that everything is OK.

There are some bugs that still occur in the backed due to the WhatsApp library that is being used (whatsapp-web.js). The problem is that its "official" development has stopped (no new release since October), but there have been changes in WhatsApp / bugs in the library that require attention.

Due to this fact, I have recently switched to a "maintained" branch of the library that is more up to date (see #164), but there are still issues with the library unfortunately.

guyzyl commented 3 months ago

Actually, I have just checked and it seems that there has been a new official release for the library last week (first one since October). I'll open a PR to move to it and hopefully things will work better! :)

guyzyl commented 3 months ago

Tested locally, it causes other bugs unfortunately

Dumonster commented 1 month ago

Having the same issue. Tried multiple browsers and incognito mode but nothing works.

EDIT: After giving up and going AFK for 10min, I came back and there was as QR code on my screen. It worked.