guyzyl / whatsapp-contact-sync

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

Whasync.com Google Sign In Issue "Something Went Wrong" #174

Closed iman-hussain closed 3 months ago

iman-hussain commented 3 months ago

As described in the title - WhatsApp appears to sync okay, but once I try to click on the correct google email it says "Something Went Wrong" really quickly.

Not entirely sure what's going on or if anyone else is experiencing this. Tried it on Chrome (already signed in) and Arc (already signed in).

I attempted chrome in an Incognito window and it wouldn't get past the WhatsApp Authorize stage after scanning the QR code.

Any further questions please ask - hopefully we can get this fixed.

guyzyl commented 3 months ago

When you got the something went wrong error, was it on whasync or in the google login tab?

iman-hussain commented 3 months ago

It was in the google login tab - I have two accounts to select and when I select the one I want I get the "something went wrong error" - will try it again today on a different WiFi network incase there's some sort of security issue.

Edit: Just attempted it again, same error. image

guyzyl commented 3 months ago

I just tried to login myself and everything worked as expected, that means that the general GAuth flow works. Since the error is from the Google Auth screen, it means it has to do something with your Google account / login, and it's not really possible for me to debug that (since it's on their end).

What I do recommend you check is that:

Let me know once you check these, hopefully this will help locate the issue.

iman-hussain commented 3 months ago

Just tested it in incognito mode and works. Would it be possible to have a server load stat somewhere - might help with people wondering why it's taking so long. And for transparency reasons - a reminder to deauth whatsapp once the website is done.

guyzyl commented 3 months ago

Did you change anything from your end? Or did it just suddenly work. I don't have those stats right now, but that's a good idea.

In regards to transparency, the access tokens get deleted from the backend automatically after a max of 30 minutes of inactivity. A few issues were previously opened to automatically log out users, I tried that and the API that's available didn't work. There's an open issue to add a message explaining how to log out when the sync is complete, haven't gotten around to it yet.

iman-hussain commented 3 months ago

I don't think I changed anything - I think it was just a combination of trying again at a time that was less busy and using incognito mode (incase there was something interfering in my extensions).

If there are any way of getting logs I'd be happy to share.

Great work! Thanks :)