-
Notifications
You must be signed in to change notification settings - Fork 276
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
[APP SUBMITTED]: requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://trakt.tv/oauth/token #8410
Comments
lately trakt as been doing maintenance on their site/api they may have changed something. |
They have been warning that they would deprecate pin auth. Could be they switched |
INFOPython Version: ERROR2020-09-03 16:47:34 ERROR TORNADO :: [20915b5] Unknown Trakt request exception. Error: 400 Traceback (most recent call last): File "C:\Medusa\Medusa\lib\traktor\trakt.py", line 118, in request resp.raise_for_status() File "C:\Medusa\Medusa\ext\requests\models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.trakt.tv/sync/collection During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Medusa\Medusa\lib\traktor\trakt.py", line 118, in request resp.raise_for_status() File "C:\Medusa\Medusa\ext\requests\models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://trakt.tv/oauth/token STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-09-04 05:06:45 ERROR TORNADO :: [20915b5] Unknown Trakt request exception. Error: 400 Traceback (most recent call last): File "C:\Medusa\Medusa\lib\traktor\trakt.py", line 118, in request resp.raise_for_status() File "C:\Medusa\Medusa\ext\requests\models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.trakt.tv/sync/collection During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Medusa\Medusa\lib\traktor\trakt.py", line 118, in request resp.raise_for_status() File "C:\Medusa\Medusa\ext\requests\models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://trakt.tv/oauth/token STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-09-07 20:26:10 ERROR TORNADO :: [708c2e9] Unknown Trakt request exception. Error: 400 Traceback (most recent call last): File "C:\Medusa\Medusa\lib\traktor\trakt.py", line 118, in request resp.raise_for_status() File "C:\Medusa\Medusa\ext\requests\models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.trakt.tv/sync/collection During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Medusa\Medusa\lib\traktor\trakt.py", line 118, in request resp.raise_for_status() File "C:\Medusa\Medusa\ext\requests\models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://trakt.tv/oauth/token STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-09-10 17:53:21 ERROR POSTPROCESSOR :: [b352bb6] Unknown Trakt request exception. Error: 400 Traceback (most recent call last): requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.trakt.tv/sync/collection During handling of the above exception, another exception occurred: Traceback (most recent call last): requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://trakt.tv/oauth/token STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-09-11 23:54:31 ERROR POSTPROCESSOR :: [b352bb6] Unknown Trakt request exception. Error: 400 Traceback (most recent call last): requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.trakt.tv/sync/collection During handling of the above exception, another exception occurred: Traceback (most recent call last): requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://trakt.tv/oauth/token STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-09-16 17:01:29 ERROR Thread_25 :: [b352bb6] Unknown Trakt request exception. Error: 400 Traceback (most recent call last): File "C:\Medusa\Medusa\lib\traktor\trakt.py", line 118, in request resp.raise_for_status() File "C:\Medusa\Medusa\ext\requests\models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.trakt.tv/sync/collection During handling of the above exception, another exception occurred: Traceback (most recent call last): File "C:\Medusa\Medusa\lib\traktor\trakt.py", line 118, in request resp.raise_for_status() File "C:\Medusa\Medusa\ext\requests\models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://trakt.tv/oauth/token STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-09-17 14:06:44 ERROR Thread_0 :: [efadfe9] Unknown Trakt request exception. Error: 400 Traceback (most recent call last): requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.trakt.tv/sync/collection During handling of the above exception, another exception occurred: Traceback (most recent call last): requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://trakt.tv/oauth/token STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-09-25 17:53:25 ERROR POSTPROCESSOR :: [b352bb6] Unknown Trakt request exception. Error: 400 Traceback (most recent call last): requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.trakt.tv/sync/collection During handling of the above exception, another exception occurred: Traceback (most recent call last): requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://trakt.tv/oauth/token STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-09-27 10:56:05 ERROR POSTPROCESSOR :: [b352bb6] Unknown Trakt request exception. Error: 400 Traceback (most recent call last): requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.trakt.tv/sync/collection During handling of the above exception, another exception occurred: Traceback (most recent call last): requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://trakt.tv/oauth/token STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
INFOPython Version: ERROR2020-10-29 17:07:10 ERROR Thread_0 :: [b352bb6] Unknown Trakt request exception. Error: 400 Traceback (most recent call last): File "/opt/medusa/lib/traktor/trakt.py", line 118, in request resp.raise_for_status() File "/opt/medusa/ext/requests/models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 401 Client Error: Unauthorized for url: https://api.trakt.tv/users/settings During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/opt/medusa/lib/traktor/trakt.py", line 118, in request resp.raise_for_status() File "/opt/medusa/ext/requests/models.py", line 941, in raise_for_status raise HTTPError(http_error_msg, response=self) requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://trakt.tv/oauth/token STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators |
@p0psicles Hi, I still getting that error. I cannot add shows from my Trakt watchlist to Medusa but I see shows added from Medusa in Trakt. Is there a way to fix this or I should write to Trakt support? |
Sometimes I manage to authorize the tract in Medusa correctly without this error, but still the synchronization request always ends with an error - TRAKTCHECKER :: [552f119] Unable to retrieve episodes from Trakt watchlist. Error: UnavailableException ("Trakt may have some issues and it's unavailable. Try again later please"). I don't know what's wrong. Nothing syncs in both directions. |
@Kravatak76 @p0psicles Hi, I also have succed yesterday to connect trakt with medusa when I generate new PIN but nothing sync from trakt. I have also problem with Trakt and Emby and there was a solution to delete trakt.xml file. Meybe here also something like that will help? |
I've managed to fix my instance of this by starting a docker image of SR, use that to authorise and then copy the tokens from the config.ini into the medusa config.ini. After that its syncing and connecting fine. |
@jeffski10 Hi, what do You mean docker image of SR? |
I'll finish the trakt oauth PR this week. That should fix all this. |
I refactored the trakt implementation, also using a new trakt library and authentication method. |
@p0psicles Hi, I choose develop branch and one more time authorize trakt but don't work either. Do I have to do something more? |
I checked out that Branch and ran locally. Connects fine with no errors. The add shows dialog is working, adds the shows back to the watchlist. Only thing the force sync button doesn't seem to do anything. Enabled debug and I see nothing in the log. |
@PrzemekSkw it's not in develop yet |
Maybe it had. I restarted the app again and then tried and the sync worked. So maybe a blip. All seems good then to me. |
Could you keep an eye out. En try the sync button again in 24 hours? |
OK I will try.
wt., 29 gru 2020, 16:23 użytkownik p0ps <[email protected]> napisał:
… Could you keep an eye out. En try the sync button again in 24 hours?
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#8410 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AGANHFDZ7DQGYA6RH6ZR3STSXHX7LANCNFSM4QOL2UVA>
.
|
@p0psicles Hi, today I try to choose develop branch but still have error compare db versions.
and errors:
|
Db is locked. Maybe opened the db with sqlite editor. Or running two medusa processes? Else restart system |
I have second Medusa on Ubuntu laptop. I restore backup on Dietpi(Rpi2) from laptop. |
@p0psicles Have left it 24 hrs and the connection remained. I replicated the sync issue by starting again. It seems when you get the token and do the test to prove connection and then try the sync the traktchecker process is not being enabled. If I restart the app it enables it and then the button works fine. |
@p0psicles I don't have those errors with db locked but on develop branch I cannot upgrade and trakt sync still don't work. |
Try the upgrade and collect a debug, log of it |
@p0psicles Hi, I see I'm on last develop release but still have trakt errors:
Now when I try to generate new PIN I have bad gateway error on small window instead of PIN. Regards, |
@PrzemekSkw it's not in develop yet |
@jeffski10 it should now start the trakt checker thread, after you save your settings. So just testing is not enough. But, you don't need to restart medusa to have it take effect. |
@p0psicles All good - just tested with the authenticated instance and then started again from scratch and in both cases the sync starts. |
Hi, I don't understand. Can You explain how to test it? |
Think its merged to develop today or tomorrow |
Merged to develop. Pls test. And let me know if there are still issues. |
@p0psicles Hi, I test now and still have error 400 on develop. Maybe I have on Dietpi?
Regards. |
My guess is that your not on the last commit. |
@p0psicles I find that there's something strange on Dietpi. I have Medusa working but when I check in ssh: |
Probably the systemd has lost contact with the PID. Restarting the system should help that. Maybe double check your init script |
@p0psicles I try Your commands but failed:
|
Your in the program data folder. Make sure you in the program folder Skip that. Don't know what's up. But it's not installed through git |
@p0psicles I reinstall Medusa but don't help. In Dietpi when reinstalling it always take newest version from github, but maybe not with develop branch. I think I will have to wait for upgrade for master. Thank You for Your help. |
INFO
Python Version:
3.8.5 (default, Jul 21 2020, 10:48:26) [Clang 11.0.3 (clang-1103.0.32.62)]
Operating System:
macOS-10.15.6-x86_64-i386-64bit
Locale:
UTF-8
Branch: develop
Database:
44.16
Commit: 7248052
Link to Log: https://gist.github.com/bf14ced83976711a2d0fbdf2b29069dc
ERROR
STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators
The text was updated successfully, but these errors were encountered: