redphx / joydance

Use Joy-Cons to play Ubisoft's Just Dance on all platforms
MIT License
87 stars 5 forks source link

Unauthorized error when default pairing with Just Dance 2021 #27

Open TheTimeWalker opened 2 years ago

TheTimeWalker commented 2 years ago

Hi, I have noticed that on Just Dance 2021 with Xbox Series X/S or Xbox One, it's not possible to pair with the game when using the default method.

It seems like that the API maybe changed for the pairing, as it seems to send the pairing code to the JD prod servers but it fails with an Unauthorized error by the servers:

<ClientResponse(https://prod.just-dance.com/sessions/v1/pairing-info?code=467455) [401 Unauthorized]>
<CIMultiDictProxy('Date': 'Tue, 16 Aug 2022 13:40:00 GMT', 'Content-Type': 'text/plain; charset=utf-8', 'Content-Length': '12', 'Connection': 'keep-alive', 'X-Powered-By': 'Express', 'Access-Control-Allow-Origin': '*', 'Vary': 'Accept-Encoding')>

I have double-checked that the pairing code is correct. Also, I have restarted the game just to be sure. It seems to work fine if I use the JD Controller app and type in the pairing code on the screen.

The only way to make it work is by using the Fast method when playing the Xbox One version specifically.