trakt-tools / universal-trakt-scrobbler

MIT License
551 stars 54 forks source link

Can't sync amazon prime #295

Open jgadelange opened 1 year ago

jgadelange commented 1 year ago

(also mentioned this on a closed issue before: https://github.com/trakt-tools/universal-trakt-scrobbler/issues/229#issuecomment-1413275617)

Expected Behavior

Be able to sync amazon prime.

Current Behavior

I get a dialog saying:

Not Logged In Looks like you're not logged in to this service. Please go to the page below and log in before trying to sync.

https://www.primevideo.com/

Steps to Reproduce

Currently get this in the console:

[UTS] Failed to activate amazon-prime API Error: {"instance":"RequestError","data":{"request":{"url":"https://atv-ps.primevideo.com/cdp/usage/GetAppStartupConfig?deviceID=&deviceTypeID=AOAGZA014O5RE&firmware=1&gascEnabled=false&version=1","method":"GET","withHeaders":{},"withRateLimit":{"id":"default","maxRPS":{"*":2}}},"status":-1,"isCanceled":false}}

Additional Information

ondrejfuhrer commented 1 year ago

Have you tried this? https://github.com/trakt-tools/universal-trakt-scrobbler/issues/279#issuecomment-1474173961

jgadelange commented 1 year ago

I have now. Makes no difference for me.

badelie commented 1 year ago

I concur, it no longer works for me either. Although I see nothing in the console.

KibosJ commented 1 year ago

Not working for me either.

[UTS] Failed to execute action. Error: {"request":{"url":"https://www.amazon.co.uk/region/eu/api/getProfiles","method":"GET","withHeaders":{"x-requested-with":"XMLHttpRequest"},"withRateLimit":{"id":"default","maxRPS":{"*":2}}},"status":404, "text":...

Throne3d commented 1 year ago

Huh, that's weird - I do keep getting 403 errors from time to time, but then after I reauthenticate on the "Account & Settings" page, things get fixed.

Would any of you be able to go to the "Your account" page, open the developer console (Ctrl+Shift+I), open up "Network", then click the "Watch history" tab on the page? The specific entry that would be good to see the URL accessed in the Headers section of the /getWatchHistorySettingsPage entry (you may need to right-click the entry or something to access the details) - for me, it looks like this: image (Looks pretty similar on Chrome and Firefox - not sure about other browsers!)

I'd guess it looks like something else for the UK if you're still getting errors in the extension after authenticating on that page!

jgadelange commented 1 year ago

image

badelie commented 1 year ago

image

wall-vincent commented 1 year ago

Same problem from Germany. The primevideo.com url does not seem to be supported: Screenshot 2023-04-14 at 17 45 25

This is what the GET request looks like from the amazon.de settings page: Screenshot 2023-04-14 at 17 40 49

olliebean commented 1 year ago

I am having the same problem, having previously solved it after posting about it in #229. What worked then, isn't working now. Here is the Network entry requested by @Throne3d above:

image

badelie commented 1 year ago

I just tried the solution in #298 and that fixed it - I think this bug is no longer valid, since the error described is not coming up anymore with v2.2. #298 was the issue I faced today after testing and I could solve it with the solution there.

jgadelange commented 1 year ago

Also tried the solution in #298. Doesn't seem to fix it for me (in Chrome).

I recently switched to Firefox. There it works perfectly for me.

wall-vincent commented 1 year ago

Using the newest version from the Firefox extension "store" (Version 0.2.2) solved it for me. Thanks! (Btw: not sure if this is necessary/relevant, but it was suggested somewhere to toggle the Amazon sync setting off and back on, so it asks again for permission to access the relevant websites.)

badelie commented 1 year ago

Using the newest version from the Firefox extension "store" (Version 0.2.2) solved it for me. Thanks! (Btw: not sure if this is necessary/relevant, but it was suggested somewhere to toggle the Amazon sync setting off and back on, so it asks again for permission to access the relevant websites.)

I already did this prior to solution in #298 as well.

markkhk commented 1 year ago

Using the newest version from the Firefox extension "store" (Version 0.2.2) solved it for me. Thanks! (Btw: not sure if this is necessary/relevant, but it was suggested somewhere to toggle the Amazon sync setting off and back on, so it asks again for permission to access the relevant websites.)

Toggling on and off worked for me