galaxy-integration-uplay icon indicating copy to clipboard operation
galaxy-integration-uplay copied to clipboard

Uplay connection keeps disconnecting

Open robertkoch13 opened this issue 3 years ago • 105 comments

I'm having to keep logging in multiple times a day. This started about a day ago, I noticed that Ubisoft Connect needed me to log in after it's last update, but it seems to be working fine after that, but GOG keeps dropping the connection.

image

robertkoch13 avatar Nov 27 '21 19:11 robertkoch13

Same issue here. Mine repeatedly fails reconnecting, possibly because of 2FA. Spammed me those emails at least. Now it disconnected and failed reconnecting so many times my Ubisoft account is temporarily suspended. Cant even login on Ubisoft Connect.

Michaelrs avatar Nov 27 '21 23:11 Michaelrs

Having the same issue. I can connect fine, but after a few hours it will disconnect and try to reconnect and I get another 2FA mail. It's really frustrating so I had no choice but to disconnect Ubisoft for the time being.

Bansheedragon avatar Nov 28 '21 12:11 Bansheedragon

Same issue here. Started a day or two ago.

alexboisot avatar Nov 28 '21 13:11 alexboisot

Same here. Started yesterday and keeps repeating. Everytime I launch gog ubi sends a verification code. If anyone can help it would be appreciated. (I don't have the first idea of coding but gog is good except when these things happen)

dsinsti avatar Nov 28 '21 17:11 dsinsti

Same here. Started yesterday and keeps repeating. Everytime I launch gog ubi sends a verification code. If anyone can help it would be appreciated. (I don't have the first idea of coding but gog is good except when these things happen)

Until it's fixed I recommend you just keep it disconnected. Someone else here got a temporary suspension for too many failed logins as a result.

Bansheedragon avatar Nov 28 '21 21:11 Bansheedragon

Same here. Started yesterday and keeps repeating. Everytime I launch gog ubi sends a verification code. If anyone can help it would be appreciated. (I don't have the first idea of coding but gog is good except when these things happen)

Until it's fixed I recommend you just keep it disconnected. Someone else here got a temporary suspension for too many failed logins as a result.

I tried disabled 2FA, and haven't had an issue since. The temporary suspension was less than 12 hours, then I could login again as usual.

So if you feel comfortable disabling 2FA, that seems to be a solution until a fix arrives.

Michaelrs avatar Nov 28 '21 22:11 Michaelrs

Same here. Started yesterday and keeps repeating. Everytime I launch gog ubi sends a verification code. If anyone can help it would be appreciated. (I don't have the first idea of coding but gog is good except when these things happen)

Until it's fixed I recommend you just keep it disconnected. Someone else here got a temporary suspension for too many failed logins as a result.

I tried disabled 2FA, and haven't had an issue since. The temporary suspension was less than 12 hours, then I could login again as usual.

So if you feel comfortable disabling 2FA, that seems to be a solution until a fix arrives.

Thanks for your workaround. I'll wait a little, this issue should be adressed soon.

dsinsti avatar Nov 28 '21 23:11 dsinsti

Here's my log file if that helps fix this issue: plugin-uplay-afb5a69c-b2ee-4d58-b916-f4cd75d4999a.log

Looks like it sometimes receives a 401 unauthorized from the ubisoft public api, maybe their API changed or they decided to time out people using the public api more often?

humdogm avatar Nov 29 '21 02:11 humdogm

Same error happening to me, multiple times per day and only started happening in the last few days. I've had to just leave it disconnected for now as it'll interrupt the game I'm playing and steal focus, sometimes that means I die in the game or it won't resume and crashes.

Extronic avatar Nov 29 '21 04:11 Extronic

I was having this issue as well but now I've been logged in to Ubi through Galaxy for two days straight. Perhaps Ubi solved this on their side?

JustThat70 avatar Dec 06 '21 16:12 JustThat70

It's been 2-3 days for me, was monitoring this from the start and now it seems fine. Assuming something wrong with Ubi's login, etc.

rknauber avatar Dec 07 '21 00:12 rknauber

Mine started doing this today.

FaithTheSlayer avatar Jan 20 '22 16:01 FaithTheSlayer

Started having this issue today

otro678 avatar Jan 20 '22 16:01 otro678

Confirmed the same, maybe some change on Ubisoft side or temporary error?

SylwesterZarebski avatar Jan 20 '22 17:01 SylwesterZarebski

From the logs, it looks like a 403 Forbidden when accessing the Ubisoft API:

2022-01-20 10:37:31,228 - root - DEBUG - Unable to refresh authentication calling auth lost: AccessDenied()
2022-01-20 10:37:31,228 - galaxy.api.jsonrpc - INFO - Sending notification: method=authentication_lost, params=None
2022-01-20 10:37:31,229 - galaxy.api.jsonrpc - DEBUG - Sending 68 bytes of data
2022-01-20 10:37:31,229 - root - ERROR - Encountered exception while parsing club games AccessDenied()
2022-01-20 10:37:31,230 - root - ERROR - Parsing club games failed: AccessDenied()
Traceback (most recent call last):
  File "C:\Users\Max\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\galaxy\http.py", line 119, in handle_exception
    yield
  File "C:\Users\Max\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\backend.py", line 52, in request
    raise error
  File "C:\Users\Max\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\backend.py", line 45, in request
    return await self._session.request(method, url, *args, **kwargs)
  File "C:\Users\Max\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\aiohttp\client.py", line 625, in _request
    resp.raise_for_status()
  File "C:\Users\Max\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\aiohttp\client_reqrep.py", line 1005, in raise_for_status
    headers=self.headers,
aiohttp.client_exceptions.ClientResponseError: 403, message='Forbidden', url=URL('https://public-ubiservices.ubi.com/v1/profiles/me/uplay/graphql')

mnxn avatar Jan 20 '22 18:01 mnxn

It is very weird, because list of games is downloaded with statistics etc. Maybe some API changed?

SylwesterZarebski avatar Jan 20 '22 19:01 SylwesterZarebski

Will this be fixed soon? It seems like these posts have been ignored for a while now since OP

FaithTheSlayer avatar Jan 21 '22 13:01 FaithTheSlayer

yeah, same thing here

K1LL3RPUNCH avatar Jan 21 '22 14:01 K1LL3RPUNCH

I was having problems with this earlier as well, after w few weeks I tried again and it seemed to be working. Now it keeps disconnecting again, only now I don't get the 2FA request anymore even though I still have 2FA active.

Last time this happened I got a temporary suspension on my ubisoft account due to too many failed logins. I don't want to go through that again or potentially losing my account due to this so until Iknow for certain this issue is fixed, I will just have to keep ubisoft disconnected.

Bansheedragon avatar Jan 21 '22 15:01 Bansheedragon

Hi! It seems like their app ids changed recently, they are probably removing the last traces of uplay. I managed to track down the new app ids. It seems to work but I'd like someone who has their subscription to test if everything is okay before sending a PR.

Could someone who is subbed to their "gamepass" try to edit following lines of consts.py https://github.com/FriendsOfGalaxy/galaxy-integration-uplay/blob/61d24e4ed0f1b2378252142e5ee2c92cd309612b/src/consts.py#L15-L16

to:

CLUB_APPID = "f35adcb5-1911-440c-b1c9-48fdc1701c68"
CLUB_GENOME_ID = "5b36b900-65d8-47f3-93c8-86bdaa48ab50"

And report if subbed games are correctly added and listed as installed in GOG ?

Thanks

#EDIT 22/10/08 Changed IDs to new ones.

fl4shback avatar Jan 22 '22 13:01 fl4shback

After changing guids in %LOCALAPPDATA%\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\consts.py no more disconnects. Thanks a lot!

SylwesterZarebski avatar Jan 22 '22 15:01 SylwesterZarebski

Hi! It seems like their app ids changed recently, they are probably removing the last traces of uplay. I managed to track down the new app ids. It seems to work but I'd like someone who has their subscription to test if everything is okay before sending a PR.

Could someone who is subbed to their "gamepass" try to edit following lines of consts.py to:

https://github.com/FriendsOfGalaxy/galaxy-integration-uplay/blob/61d24e4ed0f1b2378252142e5ee2c92cd309612b/src/consts.py#L15

https://github.com/FriendsOfGalaxy/galaxy-integration-uplay/blob/61d24e4ed0f1b2378252142e5ee2c92cd309612b/src/consts.py#L16

CLUB_APPID = "314d4fef-e568-454a-ae06-43e3bece12a6"
CLUB_GENOME_ID = "85c31714-0941-4876-a18d-2c7e9dce8d40"

And report if subbed games are correctly added and listed as installed in GOG ?

Thanks

THANK YOU!

FaithTheSlayer avatar Jan 22 '22 16:01 FaithTheSlayer

Same here

69NEPHILIM69 avatar Jan 23 '22 19:01 69NEPHILIM69

Thank you @fl4shback I have confirmed the change of app ids has resolved the "Connection Lost" issue for me. (edit: I do not have a Ubisoft+ subscription.) I did notice in your pull request that you appear to have made a typo there.

You entered the following for line 15: CLUB_APPID = "b314d4fef-e568-454a-ae06-43e3bece12a6"

There is a 'b' at the start that should not be there.

Diven73 avatar Jan 23 '22 20:01 Diven73

Thank you @fl4shback I have confirmed the change of app ids has resolved the "Connection Lost" issue for me. (edit: I do not have a Ubisoft+ subscription.) I did notice in your pull request that you appear to have made a typo there.

You entered the following for line 15: CLUB_APPID = "b314d4fef-e568-454a-ae06-43e3bece12a6"

There is a 'b' at the start that should not be there.

Copy paste gone wrong... Left the first char of the previous key.

Thanks @Diven73 for noticing !

PR Updated

fl4shback avatar Jan 23 '22 20:01 fl4shback

Hi! It seems like their app ids changed recently, they are probably removing the last traces of uplay. I managed to track down the new app ids. It seems to work but I'd like someone who has their subscription to test if everything is okay before sending a PR.

Could someone who is subbed to their "gamepass" try to edit following lines of consts.py to:

https://github.com/FriendsOfGalaxy/galaxy-integration-uplay/blob/61d24e4ed0f1b2378252142e5ee2c92cd309612b/src/consts.py#L15

https://github.com/FriendsOfGalaxy/galaxy-integration-uplay/blob/61d24e4ed0f1b2378252142e5ee2c92cd309612b/src/consts.py#L16

CLUB_APPID = "314d4fef-e568-454a-ae06-43e3bece12a6"
CLUB_GENOME_ID = "85c31714-0941-4876-a18d-2c7e9dce8d40"

And report if subbed games are correctly added and listed as installed in GOG ?

Thanks

Works for me thanks 👍

Ramshu avatar Jan 24 '22 13:01 Ramshu

It does not seem to work for me. It connects just fine, but then a few seconds after connecting it disconnects again every time. I tried restarting GOG Galaxy and I tries reinstalling GOG galaxy, but the problem persists

Bansheedragon avatar Jan 24 '22 18:01 Bansheedragon

Did You try to change guids in %LOCALAPPDATA%\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\consts.py (guid in uplay_... could be different)?

SylwesterZarebski avatar Jan 24 '22 20:01 SylwesterZarebski

Did You try to change guids in %LOCALAPPDATA%\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\consts.py (guid in uplay_... could be different)?

Just tried that now and now it will not let me log into ubisoft connect at all. The windows that opens for the login credentials just sits there flashing the ubisoft logo endlessly.

Edit: Forgot to edit both lines, it seems to work now, thanks. I just don't like messing around with stuff like that as I have no idea what I'm doing usually.

Bansheedragon avatar Jan 24 '22 22:01 Bansheedragon

Seems it's working for me fine. But this issues should be adressed by someone who knows how. In the end is in Ubisoft and GoG best interest for them both that it works.

dsinsti avatar Jan 24 '22 23:01 dsinsti