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

plextraktsync terminated by API didn't respond properly #2025

Closed
3 tasks done
leokklai opened this issue Aug 19, 2024 · 12 comments
Closed
3 tasks done

plextraktsync terminated by API didn't respond properly #2025

leokklai opened this issue Aug 19, 2024 · 12 comments
Labels
trakt support Issues that are related to problems with trakt.tv api

Comments

@leokklai
Copy link

leokklai commented Aug 19, 2024

Confirmation

  • I have read the README.md on the project homepage
  • I have checked if identical issue already exists
  • I have tried downgrading to find version that can be used as a workaround

The problem

During sync, plextraktsync terminated by API didn't respond properly. The error log is shown:

2024-08-19 12:19:29,502 WARNING[plextraktsync.decorators.retry]:Internal Server Error for plextraktsync.trakt.TraktApi.search_by_id(), retrying after 1 seconds (try: 1/5)
2024-08-19 12:19:30,780 WARNING[plextraktsync.decorators.retry]:Internal Server Error for plextraktsync.trakt.TraktApi.search_by_id(), retrying after 2 seconds (try: 2/5)
2024-08-19 12:19:33,066 WARNING[plextraktsync.decorators.retry]:Internal Server Error for plextraktsync.trakt.TraktApi.search_by_id(), retrying after 3 seconds (try: 3/5)
2024-08-19 12:19:36,335 WARNING[plextraktsync.decorators.retry]:Internal Server Error for plextraktsync.trakt.TraktApi.search_by_id(), retrying after 4 seconds (try: 4/5)
2024-08-19 12:19:40,627 WARNING[plextraktsync.decorators.retry]:Internal Server Error for plextraktsync.trakt.TraktApi.search_by_id(), retrying after 5 seconds (try: 5/5)
2024-08-19 12:19:46,563 ERROR[plextraktsync.decorators.retry]:Error: Internal Server Error
2024-08-19 12:19:46,566 ERROR[plextraktsync.decorators.retry]:Error message: Internal server error. Please open a support issue and include your full API request and response, including all headers.
2024-08-19 12:19:46,569 ERROR[plextraktsync.decorators.retry]:Last call: plextraktsync.trakt.TraktApi.search_by_id(('2207604', 'tmdb', 'episode'), {})
2024-08-19 12:19:46,587 CRITICAL[plextraktsync.cli]:Error running sync command: API didn't respond properly, script will abort now. Please try again later.

I think it is due to the TV show with tmdb ID 2207604 that plextraktsync may not be supported. But how can I found which show with this ID?

Steps to reproduce the behavior

execute plextraktsync sync, the progress will be stopped at this point.

Expected behavior

plextraktsync terminated.

Inspect of problematic items

No response

Workarounds

No response

Config file contents

No response

Install method

docker-compose

Version

0.31.7

Python Version

3.12.4

Plex Server Version

1.29.2.6364

Operating System and Version

Synolgoy DSM 7.1

@glensc glensc added the trakt support Issues that are related to problems with trakt.tv api label Aug 23, 2024
@glensc
Copy link
Collaborator

glensc commented Aug 23, 2024

Removed duplicate logs section from bug report

@glensc
Copy link
Collaborator

glensc commented Aug 23, 2024

I think it is due to the TV show with tmdb ID 2207604 that plextraktsync may not be supported. But how can I found which show with this ID?

did you enable debug logging and checking logs?

@WillPresley
Copy link

For what it's worth, I was also having this exact error for the last few days, but at some point in the last ~12 hours, it started working again on its own.

@glensc
Copy link
Collaborator

glensc commented Aug 23, 2024

this is problem at trakt.tv api side, so they might have addressed problems.

you need to report problem to them

@glensc
Copy link
Collaborator

glensc commented Aug 23, 2024

enable debug log and see what request it makes with 2207604, and then use trakt-api.sh script from project root to make same request.

@glensc
Copy link
Collaborator

glensc commented Aug 23, 2024

might be this request:

❯ ./trakt-api.sh 'https://api.trakt.tv/search/tmdb/2207604?type=episode'
curl: (22) The requested URL returned error: 500

you need to report this to trakt support.

@Animosity022
Copy link

Animosity022 commented Oct 24, 2024

This seems to hard stop the sync, is there a flag / way / method to skip it and continue on? I reported the one I found as well.

Adding my support response which isn't really reassuring:

image

@glensc
Copy link
Collaborator

glensc commented Oct 27, 2024

This is trakt side problem. seems none of you reported this to them.

still 500 error:

$ ./trakt-api.sh 'https://api.trakt.tv/search/tmdb/2207604?type=episode'
curl: (22) The requested URL returned error: 500
[{"type":"episode","score":1000,"episode":{"season":1,"number":3,"title":"I am well aware of your hard work.","ids":{"trakt":4121230,"tvdb":7697618,"imdb":null,"tmdb":2207604,"tvrage":null}},"show":{"title":"Crazy Over His Fingers: Just the Two of Us in a Salon After Closing","year":2020,"ids":{"trakt":160313,"slug":"crazy-over-his-fingers-just-the-two-of-us-in-a-salon-after-closing","tvdb":379925,"imdb":"tt12044826","tmdb":100937,"tvrage":null}}}]zsh: unknown file attribute: 2

@glensc
Copy link
Collaborator

glensc commented Oct 27, 2024

looks like i was mistakenly copying previous error message as well

so, that specific one is fixed

$ ./trakt-api.sh 'https://api.trakt.tv/search/tmdb/2207604?type=episode'
[{"type":"episode","score":1000,"episode":{"season":1,"number":3,"title":"I am well aware of your hard work.","ids":{"trakt":4121230,"tvdb":7697618,"imdb":null,"tmdb":2207604,"tvrage":null}},"show":{"title":"Crazy Over His Fingers: Just the Two of Us in a Salon After Closing","year":2020,"ids":{"trakt":160313,"slug":"crazy-over-his-fingers-just-the-two-of-us-in-a-salon-after-closing","tvdb":379925,"imdb":"tt12044826","tmdb":100937,"tvrage":null}}}]

@glensc glensc closed this as completed Oct 27, 2024
@Animosity022
Copy link

This is trakt side problem. seems none of you reported this to them.

Seems like you didn't seem my response as the image is a response from Trakt Support.

Closing this out doesn't solve the error that it fails the sync and won't go paste it. If should log the error and progress as trakt srever problems should not blow up the sync.

@glensc
Copy link
Collaborator

glensc commented Oct 29, 2024

There is pr:

but since nobody who wanted it responded, it's abandoned (might not work)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
trakt support Issues that are related to problems with trakt.tv api
Projects
None yet
Development

No branches or pull requests

4 participants