FriendsOfGalaxy/galaxy-integration-uplay

Uplay connection keeps disconnecting

Opened this issue ยท 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

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.

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.

Same issue here. Started a day or two ago.

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)

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.

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.

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.

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?

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.

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?

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.

Mine started doing this today.

Started having this issue today

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

mnxn commented

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')

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

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

yeah, same thing here

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.

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

CLUB_APPID = "b8fde481-327d-4031-85ce-7c10a202a700"
CLUB_GENOME_ID = "fbd6791c-a6c6-4206-a75e-77234080b87b"

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.

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

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:

CLUB_APPID = "b8fde481-327d-4031-85ce-7c10a202a700"

CLUB_GENOME_ID = "fbd6791c-a6c6-4206-a75e-77234080b87b"

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!

Same here

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.

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

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:

CLUB_APPID = "b8fde481-327d-4031-85ce-7c10a202a700"

CLUB_GENOME_ID = "fbd6791c-a6c6-4206-a75e-77234080b87b"

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 ๐Ÿ‘

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

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)?

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.

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.

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

I changed to these IDs and after launching the app it reconnected and displays all my owned/installed games correctly without me having to manually reconnect.

I changed the ids in this folder
C:\Users<user>\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a

image

I disconnected and reconnected to Uplay, and it's just stuck on the login with the Ubisoft logo flashing

image

@robertkoch13 Remove the 'b' letter at the beginning of your CLUB_APPID I did the same copy/paste mistake in my initial PR

that worked, it connected and synced

Any idea how to approach this on a mac? I found a corresponding .db file:

/Users/Shared/GOG.com/Galaxy/Storage/plugins/uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a-46987963386920830-storage.db

But opening it shows a binary file that I can't update.

@TimmermanDave use Finder goto action and paste this:
~/Library/Application Support/GOG.com/Galaxy/plugins/installed

Should take you to where plugins are stored

Thanks for the pointer, works like a charm! Mac still has the same issue where it can't find the complete list of Ubi games. But it's connecting now!

Another confirmation that editing the lines in consts.py worked to immediately correct the issue, all working as it should.

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:

CLUB_APPID = "b8fde481-327d-4031-85ce-7c10a202a700"

CLUB_GENOME_ID = "fbd6791c-a6c6-4206-a75e-77234080b87b"

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

Just changed
%LocalAppData%\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\consts.py
and all is fine.

Thanks!

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:

CLUB_APPID = "b8fde481-327d-4031-85ce-7c10a202a700"

CLUB_GENOME_ID = "fbd6791c-a6c6-4206-a75e-77234080b87b"

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
The connection issues are gone now in the settings. But the owned games were not poperly shown in my games list.
You need to disconnect the Ubisoft account connection in the settings and reconnected it, after that it is properly showing the games again and one is able to start them properly.

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

This fix works like a charm.

Great job!
thousands of thanks ; )

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

Also working for me within consts.py

Thank you!

After changing API IDs everything works perfectly. Thanx

can confirm changing CLUB IDs worked.
no more disconnection issues

update when

Now it can't keep my login information,I need to login manually on every reboot

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:

CLUB_APPID = "b8fde481-327d-4031-85ce-7c10a202a700"

CLUB_GENOME_ID = "fbd6791c-a6c6-4206-a75e-77234080b87b"

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

Worked for me. Don't have gamepass, but my purchased games show up, and I don't disconnects anymore.

Thanks

Hi,

I can confirm this change is working. I have an active Xbox Game Pass and am using GOG Galaxy.

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:

CLUB_APPID = "b8fde481-327d-4031-85ce-7c10a202a700"

CLUB_GENOME_ID = "fbd6791c-a6c6-4206-a75e-77234080b87b"

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

Worked for me. Don't have gamepass, but my purchased games show up, and I don't disconnects anymore.

Thanks

Same as the above, many thanks for the fix :)

Just recently upgraded to Win11 but all my profile settings were on a different drive. Never could figure out why uplay wouldn't work any more, but GOG support pointed me here and changing those values in the consts.py file did the trick. Thanks much!

i don't think it works anymore, it needs another update, not sure if it's just me or everyone, (that happened after the recent gog update)

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

This still works for me. I have Ubisoft+ and GoG on latest version.

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:

CLUB_APPID = "b8fde481-327d-4031-85ce-7c10a202a700"

CLUB_GENOME_ID = "fbd6791c-a6c6-4206-a75e-77234080b87b"

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

First of all, thanks for sharing this solution.
Seems to be working for everyone, but in may case it says that the plugin has crashed
Capturar

EDIT - I removed the ubisoft gog folder and then conected again and changed the ids. now it works!

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

Also working for me within consts.py

Thank you!

This worked for me too!

Hi, just tried to modify consts.py with
CLUB_APPID = "314d4fef-e568-454a-ae06-43e3bece12a6"
CLUB_GENOME_ID = "85c31714-0941-4876-a18d-2c7e9dce8d40"

I confirm : it worked !

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:

CLUB_APPID = "b8fde481-327d-4031-85ce-7c10a202a700"

CLUB_GENOME_ID = "fbd6791c-a6c6-4206-a75e-77234080b87b"

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 FOR THIS! Fixed my issue.

Worked for me - thank you!

It worked for me too - thanks a lot!

Confirming that it does work (using GOG Galaxy 2.0.46). Just updated both IDs, no restart required.

Also confirming this worked for me as well. Thank you!

Still insta-disconnects for me after changing line 15 and 16.

scyto commented

I just deleted and re-downloaded the integration - i note the plugin was updated with thiese two revised guids, i still get instant disconnects.

I just deleted and re-downloaded the integration - i note the plugin was updated with thiese two revised guids, i still get instant disconnects.

Last update its from 20.10.2021 ๐Ÿ˜…

Any one know if we will have path for that issue?

scyto commented

I just deleted and re-downloaded the integration - i note the plugin was updated with thiese two revised guids, i still get instant disconnects.

Last update its from 20.10.2021 ๐Ÿ˜…

Oh I see the quoted instructions above that said edit following lines of consts.py to should have said edit following lines of consts.py and then the to should have been above the grey text - i never even noticed the light grey text of the new numbers lower down. I shouldn't read github issues tired late at night lol. Shame maintainers haven't approved the PR :-( #34

Hello, how to fix this on MacOS? I cannot find local folder with plugins

Hello, how to fix this on MacOS? I cannot find local folder with plugins

Same here. I wonder how to fix this on MacOS.

@dandepeched @sgtbrunner
Please check this comment #33 (comment)

@dandepeched @sgtbrunner Please check this comment #33 (comment)

Thanks for the quick reply, @fl4shback. Unfortunately this is not an option since I don't have the GOG.com folder inside Application Support on this GOG Galaxy installation. Weird.

@fl4shback thanks for pointing to this, worked for me.
@sgtbrunner make sure you are looking in \Users\your_username\Library folder

@fl4shback yup works with your new IDs, thanks!

Will this bug be fixed in a new version?

Rather, when fixed version will be prepared?

There's been no update from FriendsOfGalaxy in some time, and we're not expecting this to be fixed. It can be manually fixed by using the details above. However there is a move to switch the codebase to a new repo under new management. https://github.com/GOG-Nebula

You could download the plugin from there.

Will this bug be fixed in a new version?

Probably. If a new version ever appears here. Which, at this point, seems pretty unlikely.

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:

CLUB_APPID = "b8fde481-327d-4031-85ce-7c10a202a700"

CLUB_GENOME_ID = "fbd6791c-a6c6-4206-a75e-77234080b87b"

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 FOR THIS! Fixed my issue.

Thanks ,works for me too !!!

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:

CLUB_APPID = "b8fde481-327d-4031-85ce-7c10a202a700"

CLUB_GENOME_ID = "fbd6791c-a6c6-4206-a75e-77234080b87b"

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 FOR THIS! Fixed my issue.

Thanks ,works for me too !!!

Same her, tnx :)

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:

CLUB_APPID = "b8fde481-327d-4031-85ce-7c10a202a700"

CLUB_GENOME_ID = "fbd6791c-a6c6-4206-a75e-77234080b87b"

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

Basically me now: https://www.youtube.com/watch?v=TRtlkcQ6brE

"How long did the fix take?"
"About 5 minutes"
"Why is the fix not pushed?!"

what do you mean by subbed games ?
I did the update and it was able to connect. I think you should make the PR.

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

CLUB_APPID = "b8fde481-327d-4031-85ce-7c10a202a700"
CLUB_GENOME_ID = "fbd6791c-a6c6-4206-a75e-77234080b87b"

to:

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

PR is open now #40

I will ๐Ÿ‘ this one as well. Platform is Windows 11 and macOS both. Confirmed fixed on both.

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

CLUB_APPID = "b8fde481-327d-4031-85ce-7c10a202a700"
CLUB_GENOME_ID = "fbd6791c-a6c6-4206-a75e-77234080b87b"

to:

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

image

Worked great, thanks for the knowledge, :)

I find it sad that the fix has been around for 7 months and still the PR has not been accepted.
Thanks @fl4shback for the fix on #33 (comment)

Hi new here do I need a python editor in order to access the files to implement this fix? No way to do it just within windows? Annoying bug but I have no idea how to actually implement the changes written above. Little help thanks.

Hi new here do I need a python editor in order to access the files to implement this fix? No way to do it just within windows? Annoying bug but I have no idea how to actually implement the changes written above. Little help thanks.

I use Notepad++ on Windows for all my script/source-code editing. Open source, lots of plugins, language highlighting and formatting. Been using it for years now. Highly recommended ๐Ÿ˜

Hi new here do I need a python editor in order to access the files to implement this fix? No way to do it just within windows? Annoying bug but I have no idea how to actually implement the changes written above. Little help thanks.

You can do it even with pure simple Notepad.exe it self, no need for any specific tooling.

Hi new here do I need a python editor in order to access the files to implement this fix? No way to do it just within windows? Annoying bug but I have no idea how to actually implement the changes written above. Little help thanks.

You can do it even with pure simple Notepad.exe it self, no need for any specific tooling.

Just done the edits still doesn't seem to work any idea why not? Update: Misread it fixed. Thanks to whoever it was sorted it.

This edit worked for me.

what do you mean by subbed games ? I did the update and it was able to connect. I think you should make the PR.

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

CLUB_APPID = "b8fde481-327d-4031-85ce-7c10a202a700"
CLUB_GENOME_ID = "fbd6791c-a6c6-4206-a75e-77234080b87b"

to:

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

PR is open now #40

It's working! Thank's

I started having this problem again yesterday.
I tried changing the APP ID as suggested just like I did like I did last time I had this, but the problem persists.
I will stay connected for a few hours before it then ask me to connect again, and each time I do I need to input a 2FA code.

Last time this happened I got my Ubisoft account temporarily suspended due to the constant login attempts.
Since this has cropped up again I'm going to have to keep my Ubisoft account disconnected for the time being to avoid this issue again.

I hope this issue can be resolved again soon.

@Bansheedragon Yes, there seems to be an issue with the remember me ticket..

2022-09-29 16:25:04,176 - root - DEBUG - rememberMeTicket expiration time: 1664454356
2022-09-29 16:25:04,176 - root - DEBUG - Refreshing ticket
2022-09-29 16:25:04,586 - root - INFO - Response status: <ClientResponse(https://public-ubiservices.ubi.com/v3/profiles/sessions) [200 OK]>
<CIMultiDictProxy('Server': 'UbiServices Gateway /2.8.0', 'Date': 'Thu, 29 Sep 2022 14:25:04 GMT', 'Content-Type': 'application/json', 'Content-Length': '2', 'Connection': 'keep-alive', 'Ubi-Forwarded-By': 'ue1-p-us-public-nginx-08a76fdfbadf624b9 ', 'Ubi-TransactionId': 'REDACTED', 'Access-Control-Allow-Origin': 'https://connect.ubisoft.com', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Methods': 'GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS', 'Access-Control-Expose-Headers': 'X-Total-Count', 'Strict-Transport-Security': 'max-age=63072000', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff')>

2022-09-29 16:25:04,686 - root - DEBUG - Refreshing rememberMeTicket
2022-09-29 16:25:04,785 - root - INFO - Response status: <ClientResponse(https://public-ubiservices.ubi.com/v3/profiles/sessions) [200 OK]>
<CIMultiDictProxy('Server': 'UbiServices Gateway /2.8.0', 'Date': 'Thu, 29 Sep 2022 14:25:04 GMT', 'Content-Type': 'application/json', 'Content-Length': '2', 'Connection': 'keep-alive', 'Ubi-Forwarded-By': 'ue1-p-us-public-nginx-08a76fdfbadf624b9 ', 'Ubi-TransactionId': 'REDACTED', 'Access-Control-Allow-Origin': 'https://connect.ubisoft.com', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Methods': 'GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS', 'Access-Control-Expose-Headers': 'X-Total-Count', 'Strict-Transport-Security': 'max-age=63072000', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff')>

2022-09-29 16:25:04,926 - root - DEBUG - Unable to refresh authentication calling auth lost: AuthenticationRequired()
2022-09-29 16:25:04,926 - galaxy.api.jsonrpc - INFO - Sending notification: method=authentication_lost, params=None
2022-09-29 16:25:04,926 - galaxy.api.jsonrpc - DEBUG - Sending 68 bytes of data
2022-09-29 16:25:04,926 - root - ERROR - AuthenticationRequired()
Traceback (most recent call last):
  File "C:\Users\victo\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\victo\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\backend.py", line 52, in request
    raise error
  File "C:\Users\victo\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\victo\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\victo\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: 401, message='Unauthorized', url=URL('https://public-ubiservices.ubi.com/v3/profiles/sessions')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\victo\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\backend.py", line 119, in _refresh_auth
    await self._refresh_ticket()
  File "C:\Users\victo\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\backend.py", line 166, in _refresh_ticket
    'Referer': 'https://connect.ubisoft.com',
  File "C:\Users\victo\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\backend.py", line 69, in _do_request
    r = await self.request(method, *args, **kwargs)
  File "C:\Users\victo\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\backend.py", line 52, in request
    raise error
  File "D:\obj\Windows-Release\37win32_Release\msi_python\zip_win32\contextlib.py", line 130, in __exit__
  File "C:\Users\victo\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\galaxy\http.py", line 130, in handle_exception
    raise AuthenticationRequired(error.message)
galaxy.api.errors.AuthenticationRequired

I won't be able to do anything about it though, I'm not skilled enough to fix something like that.

@Bansheedragon Yes, there seems to be an issue with the remember me ticket..

2022-09-29 16:25:04,176 - root - DEBUG - rememberMeTicket expiration time: 1664454356
2022-09-29 16:25:04,176 - root - DEBUG - Refreshing ticket
2022-09-29 16:25:04,586 - root - INFO - Response status: <ClientResponse(https://public-ubiservices.ubi.com/v3/profiles/sessions) [200 OK]>
<CIMultiDictProxy('Server': 'UbiServices Gateway /2.8.0', 'Date': 'Thu, 29 Sep 2022 14:25:04 GMT', 'Content-Type': 'application/json', 'Content-Length': '2', 'Connection': 'keep-alive', 'Ubi-Forwarded-By': 'ue1-p-us-public-nginx-08a76fdfbadf624b9 ', 'Ubi-TransactionId': 'REDACTED', 'Access-Control-Allow-Origin': 'https://connect.ubisoft.com', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Methods': 'GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS', 'Access-Control-Expose-Headers': 'X-Total-Count', 'Strict-Transport-Security': 'max-age=63072000', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff')>

2022-09-29 16:25:04,686 - root - DEBUG - Refreshing rememberMeTicket
2022-09-29 16:25:04,785 - root - INFO - Response status: <ClientResponse(https://public-ubiservices.ubi.com/v3/profiles/sessions) [200 OK]>
<CIMultiDictProxy('Server': 'UbiServices Gateway /2.8.0', 'Date': 'Thu, 29 Sep 2022 14:25:04 GMT', 'Content-Type': 'application/json', 'Content-Length': '2', 'Connection': 'keep-alive', 'Ubi-Forwarded-By': 'ue1-p-us-public-nginx-08a76fdfbadf624b9 ', 'Ubi-TransactionId': 'REDACTED', 'Access-Control-Allow-Origin': 'https://connect.ubisoft.com', 'Access-Control-Allow-Credentials': 'true', 'Access-Control-Allow-Methods': 'GET, POST, PUT, PATCH, DELETE, HEAD, OPTIONS', 'Access-Control-Expose-Headers': 'X-Total-Count', 'Strict-Transport-Security': 'max-age=63072000', 'X-Frame-Options': 'DENY', 'X-Content-Type-Options': 'nosniff')>

2022-09-29 16:25:04,926 - root - DEBUG - Unable to refresh authentication calling auth lost: AuthenticationRequired()
2022-09-29 16:25:04,926 - galaxy.api.jsonrpc - INFO - Sending notification: method=authentication_lost, params=None
2022-09-29 16:25:04,926 - galaxy.api.jsonrpc - DEBUG - Sending 68 bytes of data
2022-09-29 16:25:04,926 - root - ERROR - AuthenticationRequired()
Traceback (most recent call last):
  File "C:\Users\victo\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\victo\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\backend.py", line 52, in request
    raise error
  File "C:\Users\victo\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\victo\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\victo\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: 401, message='Unauthorized', url=URL('https://public-ubiservices.ubi.com/v3/profiles/sessions')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Users\victo\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\backend.py", line 119, in _refresh_auth
    await self._refresh_ticket()
  File "C:\Users\victo\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\backend.py", line 166, in _refresh_ticket
    'Referer': 'https://connect.ubisoft.com',
  File "C:\Users\victo\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\backend.py", line 69, in _do_request
    r = await self.request(method, *args, **kwargs)
  File "C:\Users\victo\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\backend.py", line 52, in request
    raise error
  File "D:\obj\Windows-Release\37win32_Release\msi_python\zip_win32\contextlib.py", line 130, in __exit__
  File "C:\Users\victo\AppData\Local\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\galaxy\http.py", line 130, in handle_exception
    raise AuthenticationRequired(error.message)
galaxy.api.errors.AuthenticationRequired

I won't be able to do anything about it though, I'm not skilled enough to fix something like that.

you always were the one that fixes the previous issues, now our hope is gone. Who else can actually do it ?

Someone posted at the GOG forums that the Ubisoft ID has changed again.

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

https://www.gog.com/forum/general_beta_gog_galaxy_2.0/ubisoft_connect_connection_lost/post145

I have changed mine again in the hopes that this will solve the issue.

My %LOCALAPPDATA%\GOG.com\Galaxy\plugins\installed\uplay_afb5a69c-b2ee-4d58-b916-f4cd75d4999a\consts.py file is getting kinda funny with this, since I decided to leave the previous values commented out with a link to the ref. post here, and adding the new values...

# CLUB_APPID = "b8fde481-327d-4031-85ce-7c10a202a700"
# CLUB_GENOME_ID = "fbd6791c-a6c6-4206-a75e-77234080b87b"
# https://github.com/FriendsOfGalaxy/galaxy-integration-uplay/issues/33#issuecomment-1019254379

# CLUB_APPID = "314d4fef-e568-454a-ae06-43e3bece12a6"
# CLUB_GENOME_ID = "85c31714-0941-4876-a18d-2c7e9dce8d40"
# https://github.com/FriendsOfGalaxy/galaxy-integration-uplay/issues/33#issuecomment-1263689396

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

@Bansheedragon Thanks for your report.
Strangely, their website still uses the old IDs so it should still work...
Will test those new IDs and update my comment/PR if it works for some days.

#EDIT
Updated original comment and PR.
#33 (comment)
#34

I changed the IDs like in the comment from fl4shback, its working for me. Thx
CLUB_APPID = "f35adcb5-1911-440c-b1c9-48fdc1701c68"
CLUB_GENOME_ID = "5b36b900-65d8-47f3-93c8-86bdaa48ab50"

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

and now it works :D

Thank you for that fix, should be included in the plugin ๐Ÿš€ Could there be a way to automatically match Uplay's ids in order to avoid plugin being broken each time Ubisoft decides to change them ?

I hope it's not a too dumb question, but... if we all know that those two lines fix the issue, why don't they release an update?

I hope it's not a too dumb question, but... if we all know that those two lines fix the issue, why don't they release an update?

Nobody has write access to the repo and the maintainer is inactive.

We could release an update on another repo but galaxy is hardcoded to check updates on this one.

I can fork this repository and apply the patch. I'm not sure how we can make GOG client to point to my repository then, instead of pointing to this one