brave / brave-browser

Brave browser for Android, iOS, Linux, macOS, Windows.
https://brave.com
Mozilla Public License 2.0
17.9k stars 2.34k forks source link

Web.whatsapp.com fails to authenticate and returns "Make sure you computer has an active internet connection" #23382

Open r3lai opened 2 years ago

r3lai commented 2 years ago

Description

Whatsapp web interface fails to authenticate, and enters into infinite loop when logging out.

Steps to Reproduce

  1. Open a private browser
  2. Go to web.whatsapp.com
  3. Scan the QR code with your mobile phone using Whatsapp
  4. Wait to see the error Whatsapp Web seems to load fine for Latest chrome version (Version 102.0.5005.115 (Official Build) (64-bit)), and Firefox

Actual result:

Video of error generated: https://photos.google.com/share/AF1QipMOGcCAVdJiFN-JgSlF8qM9TLux1nUKT2Yg25vq4Syf_jJPybwOb2jsU0pA7lwvGw?key=OTAta3BqWmw5djVKQ2xyV0J0OTNyZkdDbzhVc25R

Expected result:

Whatsapp is logged in

Reproduces how often:

Brave version (info found on brave://version)

Brave 1.39.120 Chromium: 102.0.5005.99 (Official Build) (64-bit) Revision 870f7bcc58dfa811cc68c2186439721385e086d0-refs/branch-heads/5005@{#1125} OS Windows 10 Version 21H2 (Build 19044.1706)

Version/Channel Information:

Other Additional Information:

Miscellaneous Information:

rebron commented 2 years ago

cc: @ryanbr

ryanbr commented 2 years ago

Hey, just testing this. Working for me here.

Can you clear the cookies & cache in brave://settings/clearBrowserData then restart Brave? @r3lai

sav-valerio commented 2 years ago

I'm having the same issue, but only with my original "personal" Brave profile. I tried logging in with another one and it's working fine.

Also tried clearing up cookies and cache as @ryanbr suggested but nothing changed.

The only strange thing I noticed is that the following requests stay on pending:

image

EDIT: I think this is caused by some browser extensions that I'm not using on my other profile. After disabling them all I'm now able to log-in properly.

ryanbr commented 2 years ago

Which browser extension is causing it @sav-valerio

rambhosale commented 2 years ago

After clearing browser data and disabling all the extensions it is working again

sav-valerio commented 2 years ago

@ryanbr I think it's Tampermonkey but I'm not 100% sure because after logging in it's working fine (and I enabled it back).

ryanbr commented 2 years ago

After clearing browser data and disabling all the extensions it is working again

Okay, re-enable extensions, do you see the issue return? @rambhosale Which extensions do you have?

ryanbr commented 2 years ago

@ryanbr I think it's Tampermonkey but I'm not 100% sure because after logging in it's working fine (and I enabled it back).

If you can reproduce again, disable each extension one by one (maybe restart the browser between each). Then retest whatsapp. To be sure it helps

r3lai commented 2 years ago

I've taken the additional checks on the extension side, and have identified the "Honey" app (https://chrome.google.com/webstore/detail/honey-automatic-coupons-c/bmnlcjabgnpnenekpadlanbbkooimhnj) as the culprit. Disabling this app and restarting the browser will allow Whatsapp web to run normally.

rambhosale commented 2 years ago

@ryanbr I think it is "Honey" as mentioned by @r3lai here are the extensions that I use if it can help further Honey, react dev tools, vue dev tools, markdown viewer, JSON viewer, Vimium, Grammarly

michau-krakow commented 2 years ago

I don't use "Honey" extension and still have issues with Whatsapp so this is more complicated. For me it seem to work until I re-enable "Disable HTML5 Autoplay (Reloaded)" extension - then it stops working. Disabling all extensions again does NOT help - for Whatsapp to work again I need to do the magic with caches and site settings. It looks like (some) extensions are doing something nasty and can't revert that when disabled...

ryanbr commented 2 years ago

Does Brave Beta help? (test with no extensions first)

Then install all the same extensions into Brave Beta, and retest @rambhosale @r3lai @michau-krakow @sav-valerio

r3lai commented 2 years ago

Confirmed that the latest Brave

Does Brave Beta help? (test with no extensions first)

Then install all the same extensions into Brave Beta, and retest @rambhosale @r3lai @michau-krakow @sav-valerio

Can confirm that latest Brave Beta [Version 1.40.96 Chromium: 102.0.5005.115 (Official Build) beta (64-bit)] is behaving the same way. When Honey is active, whatsapp web hangs and does not load. It works as expected once Honey is deactivated.

Console error detected image

Console error text:

Uncaught (in promise) {message: 'A listener indicated an asynchronous response by r…age channel closed before a response was received'}message: "A listener indicated an asynchronous response by returning true, but the message channel closed before a response was received"[[Prototype]]: Objectconstructor: ƒ ()[[Prototype]]: Object 3serviceworker.js:1 Uncaught (in promise) TypeError: Failed to execute 'put' on 'Cache': Partial response (status code 206) is unsupported at serviceworker.js:1:60426 at Generator.next () at t (serviceworker.js:1:32220) at o (serviceworker.js:1:32431) (anonymous) @ serviceworker.js:1 t @ serviceworker.js:1 o @ serviceworker.js:1

ryanbr commented 2 years ago

Do I need a login to Honey to test this @r3lai ? Whats the steps, Install Honey, then open web.whatapp.com ?

r3lai commented 2 years ago

No login is necessary. I'm not logged in when reproducing this issue.

  1. Install the honey app
  2. ensure the app is active
  3. Clear cookies and close browser
  4. Open browser, go to web.whatsapp.com
  5. Scan QR code if the QR code comes up

Expected Result: User is logged in Observed Result:

ryanbr commented 2 years ago

Okay, I'll do some testing tomorrow (well, later today)

mpperez3 commented 2 years ago

Hey, I am experiencing the same issue but I have not the Honey extension. I try disable all extensions but it still not works. I also deleted cookies and storage, but chat sockets always be pending.

When WhatsApp QR is finally loaded (sometimes and after a lot of time), browser throw the next exception on read it with the smartphone:

Uncaught (in promise) TypeError: Failed to execute 'put' on 'Cache': Partial response (status code 206) is unsupported
    at serviceworker.js:1:46087
    at Generator.next (<anonymous>)
    at t (serviceworker.js:1:32220)
    at o (serviceworker.js:1:32431)

I try other browsers and WhatsApp works in all of them. I have the v1.40.105 x64 version (Windows 11). I also proved the private mode (with no extensions) with the same result.

Lim4 commented 2 years ago

Hey, I am experiencing the same issue but I have not the Honey extension. I try disable all extensions but it still not works. I also deleted cookies and storage, but chat sockets always be pending.

When WhatsApp QR is finally loaded (sometimes and after a lot of time), browser throw the next exception on read it with the smartphone:

Uncaught (in promise) TypeError: Failed to execute 'put' on 'Cache': Partial response (status code 206) is unsupported
    at serviceworker.js:1:46087
    at Generator.next (<anonymous>)
    at t (serviceworker.js:1:32220)
    at o (serviceworker.js:1:32431)

I try other browsers and WhatsApp works in all of them. I have the v1.40.105 x64 version (Windows 11). I also proved the private mode (with no extensions) with the same result.

Hello Martín I'm having the same problem as you Win10 21H2 + Brave 1.40.105

Lim4 commented 2 years ago

Hello Brave team A user has managed to make Whatsapp Web work this way The bug has to do with enabling/disabling hardware acceleration. https://community.brave.com/t/whatsapp-web-is-not-working/402693/63

kunsel commented 2 years ago

Having the same issue, did disable plugins, cleared cache, tried to turn on/off hardware acceleration...

mpperez3 commented 2 years ago

Having the same issue, did disable plugins, cleared cache, tried to turn on/off hardware acceleration...

Try in this way: swap hardware acceleration (for me, works with turn off )> clear cookies & cache > kill brave process > try again

It works for me.

Josema commented 2 years ago

Hello Brave team A user has managed to make Whatsapp Web work this way The bug has to do with enabling/disabling hardware acceleration. https://community.brave.com/t/whatsapp-web-is-not-working/402693/63

This does not work for me. Tried also cleaning cache and disabling plugins.

My version is:

[Version 1.41.100 Chromium: 103.0.5060.134 (Official Build) (64-bit)](https://brave.com/latest/)
kunsel commented 2 years ago

Having the same issue, did disable plugins, cleared cache, tried to turn on/off hardware acceleration...

Try in this way: swap hardware acceleration (for me, works with turn off )> clear cookies & cache > kill brave process > try again

It works for me.

Did not work for me. Though I use multiple profiles.

mpperez3 commented 2 years ago

New method.

  1. Remove all whatsapp cookies and storage (you can do it quickly from the lock of the navigation bar)
  2. Disable hardware acceleration.9
  3. Restart Brave
  4. Go to the whatsapp web. The QR code should have appeared (fast) in this way to be readed
  5. Open a new config tab with the Brave hardware acceleration option
  6. Read the QR code with the smartphone
  7. Wait some seconds (don't wait for website to finish loading or an error message)
  8. Enable the hardware acceleration and fast restart (Without wait for the whatsapp loading end or error message)

Thanks to @Lim4

kunsel commented 2 years ago

Okay, THAT actually worked. Thanks a lot!

NadavOz commented 2 years ago

New method.

  1. Remove all whatsapp cookies and storage (you can do it quickly from the lock of the navigation bar)
  2. Disable hardware acceleration.
  3. Restart Brave
  4. Go to the whatsapp web. The QR code should have appeared fast in this way to be readed
  5. Open a new config tab with the Brave hardware acceleration option
  6. Read the QR code with the smartphone
  7. Wait some seconds (don't wait for website to finish loading or an error message)
  8. Enable the hardware acceleration and fast restart (Without wait for the whatsapp loading end or error message)

Let me know if it works :)

Worked for me as well

ancho85 commented 2 years ago

New method.

  1. Remove all whatsapp cookies and storage (you can do it quickly from the lock of the navigation bar)
  2. Disable hardware acceleration.
  3. Restart Brave
  4. Go to the whatsapp web. The QR code should have appeared fast in this way to be readed
  5. Open a new config tab with the Brave hardware acceleration option
  6. Read the QR code with the smartphone
  7. Wait some seconds (don't wait for website to finish loading or an error message)
  8. Enable the hardware acceleration and fast restart (Without wait for the whatsapp loading end or error message)

This method also worked for me.

GamingwithAnikYT commented 2 years ago

New method.

  1. Remove all whatsapp cookies and storage (you can do it quickly from the lock of the navigation bar)
  2. Disable hardware acceleration.
  3. Restart Brave
  4. Go to the whatsapp web. The QR code should have appeared fast in this way to be readed
  5. Open a new config tab with the Brave hardware acceleration option
  6. Read the QR code with the smartphone
  7. Wait some seconds (don't wait for website to finish loading or an error message)
  8. Enable the hardware acceleration and fast restart (Without wait for the whatsapp loading end or error message)

thank u sooooo much

zcraber commented 2 years ago

I don't have the Honey extension installed, still facing the issue. Tried from a private window, but it didn't work either.

jonathansampson commented 2 years ago

@zcraber Does it work if you disable hardware acceleration (from brave://settings/system), restart Brave, then relaunch Brave?

zcraber commented 2 years ago

@zcraber Does it work if you disable hardware acceleration (from brave://settings/system), restart Brave, then relaunch Brave?

I just tried it. Yes, it worked!

Patoinf commented 2 years ago

@ryanbr @mpperez3 @Lim4 @bsclifton

Hi there you guys! ;) Wanted to add my little grain of sand about this annoying little problem:

Don't use any of the fore mentioned extensions, still I was having the exact same issue. So I tried disable all extensions + clear cache + brave restart: WhatsApp web started working normally.

Then started enabling extensions one bye one as to find which one was at fault. Found that at least 3 of my 10 extensions triggered the issue ("CrxMouse Chrome™ Gestures", "HBO Max Extended: tools to fix HBO" and "Simple Allow Copy"). I say at least because i decided to stop the experiment. (Let's say many of my essential extensions trigger the problem and just use other browser for WhatsApp.)

Then I read about this Hardware Acceleration method and was about to try it out, BUT:

THE INTERESTING PART Forgetting to close the failed ("Make sure you computer has an active internet connection"...) tab after the last test, having surrendered to my fate I re-enabled all extensions and went on with my day. The next time I payed attention to that tab (not too long after), I clicked on it, with the intention of closing it, but here it was: a FULLY normal, logged in, working Whatsapp web session (with a matching "Google Chrome" session listed on the "Linked Devices" tab on my phone's WhatsApp app.)

Have reloaded the tab a couple of times, and it loads perfectly every time. (Doesn't make sense to me, when testing, enabling any of the problematic extensions and reloading always triggered the issue.) Have NOT restarted the browser since (Grew tired of doing it over and over while testing)

[Version 1.42.88 Chromium: 104.0.5112.81 (Official Build) (x86_64)]

** Update: WhatsApp web working after Brave re-start.

levicki commented 2 years ago

@ryanbr @rebron I have the same issue and I did some additional testing.

In my case, the problem is caused by TamperMonkey extension.

I tried blacklisting *://web.whatsapp.com/* in TamperMonkey settings (so the icon shows it is disabled for that site) and restarting the browser, but that didn't help at all.

Only completely disabling the extension and restarting the browser causes the problem to go away.

Now if I only knew what TamperMonkey does that stops WebSocket connections from working (I also get chat request as pending like the others above).

EDIT:

In my case, definitely TamperMonkey+Brave is somehow blocking WhatsApp Web from working.

pietroanello commented 2 years ago

@zcraber Does it work if you disable hardware acceleration (from brave://settings/system), restart Brave, then relaunch Brave?

For me just disabling didn't work. Disabling and re-enabling was the solution, but of course I have no idea why

JustOptimize commented 2 years ago

I tried blacklisting ://web.whatsapp.com/ in TamperMonkey settings (so the icon shows it is disabled for that site) and restarting the browser, but that didn't help at all.

Instead I tried to whitelist TamperMonkey only on the sites it uses and after restarting the browser it seems to fix the issue

Edit: Here are my settings for the extention image

VeganBurger commented 2 years ago

I was experiencing the same error (up-to-date version of Brave for Linux prompting "Make sure you computer has an active internet connection").

This was caused by an add-in as well. In my case, the add-in was DuckDuckGo Privacy Essentials (since this add-in blocks all of Meta's trackers, which probably are required for the web version to work properly). The error was solved by disabling site protection in the web.whatsapp.com domain. This can be done by clicking on the add-in > Unprotected Sites > Add unprotected site > add web.whatsapp.com

image

milovangudelj commented 2 years ago

I tried the method suggested by @mpperez3 and it worked fine, finally.

I'm glad that I'm able to use the app again, but it shouldn't require me to use finicky workarounds that don't work for everybody to be able to run it.

As far as I'm concerned this has not been fixed yet.

oktayderman commented 1 year ago

Solution is disabling "hardware acceleration" and clearing cookies in your browser settings. and logout whatsapp and relogin. I was having problem at edge,opera in ubuntu. Problem gone thanks