Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Uplay connection keeps disconnecting #33

Open
robertkoch13 opened this issue Nov 27, 2021 · 105 comments · May be fixed by #34
Open

Uplay connection keeps disconnecting #33

robertkoch13 opened this issue Nov 27, 2021 · 105 comments · May be fixed by #34

Comments

@robertkoch13
Copy link

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

@Michaelrs
Copy link

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.

@Bansheedragon
Copy link

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.

@alexboisot
Copy link

Same issue here. Started a day or two ago.

@dsinsti
Copy link

dsinsti commented Nov 28, 2021

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)

@Bansheedragon
Copy link

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.

@Michaelrs
Copy link

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.

@dsinsti
Copy link

dsinsti commented Nov 28, 2021

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.

@humdogm
Copy link

humdogm commented Nov 29, 2021

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?

@Extronic
Copy link

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.

@JustThat70
Copy link

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?

@rknauber
Copy link

rknauber commented Dec 7, 2021

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.

@FaithTheSlayer
Copy link

Mine started doing this today.

@otro678
Copy link

otro678 commented Jan 20, 2022

Started having this issue today

@SylwesterZarebski
Copy link

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

@mnxn
Copy link

mnxn commented Jan 20, 2022

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

@SylwesterZarebski
Copy link

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

@FaithTheSlayer
Copy link

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

@K1LL3RPUNCH
Copy link

yeah, same thing here

@Bansheedragon
Copy link

Bansheedragon commented Jan 21, 2022

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.

@fl4shback
Copy link

fl4shback commented Jan 22, 2022

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.

@SylwesterZarebski
Copy link

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

@FaithTheSlayer
Copy link

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!

@fl4shback fl4shback linked a pull request Jan 23, 2022 that will close this issue
@69NEPHILIM69
Copy link

Same here

@Diven73
Copy link

Diven73 commented Jan 23, 2022

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.

@fl4shback
Copy link

fl4shback commented Jan 23, 2022

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

@Ramshu
Copy link

Ramshu commented Jan 24, 2022

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 👍

@Bansheedragon
Copy link

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

@SylwesterZarebski
Copy link

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

@Bansheedragon
Copy link

Bansheedragon commented Jan 24, 2022

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.

@lightningHoneypot
Copy link

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?!"

@NargiT
Copy link

NargiT commented Jul 14, 2022

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

@michaelsmoody
Copy link

I will 👍 this one as well. Platform is Windows 11 and macOS both. Confirmed fixed on both.

@OldGuyWithTwins
Copy link

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, :)

@joaociocca
Copy link

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)

@ghost
Copy link

ghost commented Sep 4, 2022

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.

@OldGuyWithTwins
Copy link

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 😁

@joaociocca
Copy link

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.

@ghost
Copy link

ghost commented Sep 4, 2022

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.

@Nalroth
Copy link

Nalroth commented Sep 9, 2022

This edit worked for me.

@NightFluo90
Copy link

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

@Bansheedragon
Copy link

Bansheedragon commented Sep 29, 2022

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.

@fl4shback
Copy link

@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.

@GreatOldGame
Copy link

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

@Bansheedragon
Copy link

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.

@joaociocca
Copy link

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"

@fl4shback
Copy link

fl4shback commented Sep 30, 2022

@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

@ManuelReschke
Copy link

ManuelReschke commented Oct 11, 2022

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"

@heartdeadz
Copy link

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

and now it works :D

@TBG-FR
Copy link

TBG-FR commented Nov 1, 2022

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 ?

@andreagrandi
Copy link

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?

@fl4shback
Copy link

fl4shback commented Dec 3, 2022

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.

@andreagrandi
Copy link

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

@michaelsmoody
Copy link

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

I'm willing to also work with you on this to be a maintainer on a forked repo. Let's get a repo spun up together. I'll see if Gog can be contacted. Perhaps also Heroic.

@rufusw
Copy link

rufusw commented Dec 3, 2022

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

I'm willing to also work with you on this to be a maintainer on a forked repo. Let's get a repo spun up together. I'll see if Gog can be contacted. Perhaps also Heroic.

I saw this mentioned in this thread back in June #33 (comment)
https://github.com/GOG-Nebula

@CececeDric
Copy link

Tks lot for me is good 👍
swapped to these too
CLUB_APPID = "f35adcb5-1911-440c-b1c9-48fdc1701c68"
CLUB_GENOME_ID = "5b36b900-65d8-47f3-93c8-86bdaa48ab50"

@PylonWarper
Copy link

Good Day,
Is there someone willing to post a clear guide on how to get CLUB_APPID & CLUB_GENOME_ID from Ubisoft website please? I try many way but it always failing. Look like support for that plugging was kind of drop a year ago but it seem to be working for some folks. Would just be nice if someone put a clear doc on how to temporary fix this issue. Thanks

@MonsieurKifuz
Copy link

MonsieurKifuz commented Feb 24, 2023

Good Day, Is there someone willing to post a clear guide on how to get CLUB_APPID & CLUB_GENOME_ID from Ubisoft website please? I try many way but it always failing. Look like support for that plugging was kind of drop a year ago but it seem to be working for some folks. Would just be nice if someone put a clear doc on how to temporary fix this issue. Thanks

Hello,
I had the exact same question a long time ago, and today, when the Ubisoft integration broke again, I searched on different threads.
Here the solution someone provided and worked for me so far. In fact, I copied the ID using the solution before figuring out it was the same ID provided above from CececeDric.

Sources :
https://www.gog.com/forum/general_beta_gog_galaxy_2.0/ubisoft_connect_connection_lost/page15
https://www.reddit.com/r/gog/comments/r310c8/comment/i3ghw59/?context=3

Go to the Ubisoft website, and click to connect. It should prompt a connection pop-up.

Capture d’écran 2023-02-24 210216

Use the connection pop-up and find the arguments 'appId' and 'genomeId' in the URL

Capture d’écran 2023-02-24 205039

Hope this helped

Cheers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.