mynttt / UpdateTool

A tool to update the IMDB ratings for Plex libraries that contain movies/series and use the IMDB agent to receive ratings
GNU General Public License v3.0
255 stars 12 forks source link

API call failed with code 200 after + 5 attempt(s) #10

Closed zapras closed 4 years ago

zapras commented 4 years ago

I have a large collection of movies. The updatetool fails to complete after at least 5 of my movies receives "OMDB_API_FAIL". I've checked each of those movies and some are unclear why OMDB fails to fetch, but at least 2 is because it's set as In Development.

Using the docker container.

[ERROR] - 2020-01-19 23:28:53 @ ImdbOmdbWorker.call: OMDB_API_FAIL := TITLE -> The Ice Dragon | IMDB_ID -> tt8451934 | GUID -> com.plexapp.agents.imdb://tt8451934?lang=en | RESPONSE_CODE -> 200 | RESPONSE_BODY -> {"Response":"False","Error":"Error getting data."},
[ERROR] - 2020-01-19 23:30:34 @ ImdbOmdbWorker.call: OMDB_API_FAIL := TITLE -> ReMastered: Who Shot the Sheriff | IMDB_ID -> tt9046548 | GUID -> com.plexapp.agents.imdb://tt9046548?lang=en | RESPONSE_CODE -> 200 | RESPONSE_BODY -> {"Response":"False","Error":"Subquery returned more than 1 value. This is not permitted when the subquery follows =, !=, <, <= , >, >= or when the subquery is used as an expression."},
[ERROR] - 2020-01-19 23:32:03 @ ImdbOmdbWorker.call: OMDB_API_FAIL := TITLE -> Wake | IMDB_ID -> tt3876910 | GUID -> com.plexapp.agents.imdb://tt3876910?lang=en | RESPONSE_CODE -> 200 | RESPONSE_BODY -> {"Response":"False","Error":"Error getting data."},
[ERROR] - 2020-01-19 23:33:03 @ ImdbOmdbWorker.call: OMDB_API_FAIL := TITLE -> Jackson | IMDB_ID -> tt7923350 | GUID -> com.plexapp.agents.imdb://tt7923350?lang=en | RESPONSE_CODE -> 200 | RESPONSE_BODY -> {"Response":"False","Error":"Error getting data."},
[ERROR] - 2020-01-19 23:34:33 @ ImdbOmdbWorker.call: OMDB_API_FAIL := TITLE -> Love Dot Com: The Social Experiment | IMDB_ID -> tt9238392 | GUID -> com.plexapp.agents.imdb://tt9238392?lang=en | RESPONSE_CODE -> 200 | RESPONSE_BODY -> {"Response":"False","Error":"Error getting data."},
zapras commented 4 years ago

I've tried deleting all those movies, but the updatetool still thinks they are there. I'm not sure what else I can do to get it working?

[INFO ] - 2020-01-20 02:13:05 @ ImdbOmdbWorker.call: Fetching [20500/22208]...
[INFO ] - 2020-01-20 02:13:07 @ ImdbDockerImplementation$ImdbBatchJob.run: Job returned API_ERROR : Aborted job queue due to the API failing to deliver a result.
[ERROR] - 2020-01-20 02:13:07 @ ImdbDockerImplementation$ImdbBatchJob.run: Aborted job queue due to the API failing to deliver a result.
[ERROR] - 2020-01-20 02:13:07 @ ImdbDockerImplementation$ImdbBatchJob.run: Original message: API call failed with code 200 after + 5 attempt(s): {"Response":"False","Error":"Error getting data."}
[INFO ] - 2020-01-20 02:13:07 @ ImdbDockerImplementation$ImdbBatchJob.run: Aborting queue duo to failing to fetch from the OMDB API. Will wait until next invocation.
[INFO ] - 2020-01-20 02:13:07 @ ImdbDockerImplementation$ImdbBatchJob.run: It is now safe to suspend execution if this tool should not run 24/7.
mynttt commented 4 years ago

This is an issue with the OMDB API itself, I guess they don't have the data available or something in their backend failed to retrieve the data. These items will be ignored by the tool until the API works so it is safe to ignore it and just hope that one day the API will work again for these items.