bvanheu / pytoutv

TOU.TV client library and user interfaces written in Python 3
96 stars 23 forks source link

400 error on login #115

Closed gboudreau closed 6 years ago

gboudreau commented 6 years ago
$ toutv login me@hotmail.com
Password: 
Unable to login "Unexpected HTTP response code 400 for "https://services.radio-canada.ca/auth/oauth/v2/authorize""

On the web, I can login just fine. Same using the mobile app on Android. It's just pytoutv that gives me an error...

simark commented 6 years ago

I get the error too.

Extarys commented 6 years ago

I get: Unable to login "Unexpected HTTP response code 200 for "https://services.radio-canada.ca/auth/oauth/v2/authorize"" Should I open a different issue?

gboudreau commented 6 years ago

No, I get the same error as you now. Will take a look today if I can.

gboudreau commented 6 years ago

Looks like the login flow changed; I checked what the Android app did, and replicated that. Was close enough to what we were doing already.

pducharme commented 6 years ago

How to isntall the fix ? I installed by issuing sudo pip3 install pytoutv (got version 3. something), but still get the same error HTTP 200.

simark commented 6 years ago

How to isntall the fix ? I installed by issuing sudo pip3 install pytoutv (got version 3. something), but still get the same error HTTP 200.

@pducharme, I created a new release, so you should be able to use pip3 install --upgrade pytoutv to get the new version now.

Extarys commented 6 years ago

Awesome thanks

pducharme commented 6 years ago

Works fine with the new version btw.