v19 themoviedb.org lookups have been failing since October 26 2021
#1
Greetings.  Yesterday, I started to notice the following Pop-Up when performing a Movie Library update.

Image

Checking the logs, I started to find instances of the following.

2021-10-26 08:00:03.535 T:48643 INFO : VideoInfoScanner: Starting scan ..
2021-10-26 08:00:36.430 T:48643 ERROR : CCurlFile::FillBuffer - Failed: Timeout was reached(28)
2021-10-26 08:00:36.430 T:48643 ERROR : CCurlFile::Open failed with code 0 for https://api.themoviedb.org/3/search/movi...anguage=en:
2021-10-26 08:00:36.430 T:48643 ERROR : Run: Unable to parse web site

I can confirm that the URL is resolving.

ping api.themoviedb.org
PING api.themoviedb.org (65.8.20.4): 56 data bytes
64 bytes from 65.8.20.4: seq=0 ttl=247 time=11.759 ms
64 bytes from 65.8.20.4: seq=1 ttl=247 time=6.137 ms
64 bytes from 65.8.20.4: seq=2 ttl=247 time=10.263 ms
^C
--- api.themoviedb.org ping statistics ---
3 packets transmitted, 3 packets received, 0% packet loss
round-trip min/avg/max = 6.137/9.386/11.759 ms

I can also receive a valid response when accessing the URL from a different host.

json:
{"page":1,"results":[{"adult":false,"backdrop_path":"/kmuSGNlF9mfNHIDOEVEWPj6f3Ak.jpg","genre_ids":[35,80],"id":337404,"original_language":"en","original_title":"Cruella","overview":"In 1970s London amidst the punk rock revolution, a young grifter named Estella is determined to make a name for herself with her designs. She befriends a pair of young thieves who appreciate her appetite for mischief, and together they are able to build a life for themselves on the London streets. One day, Estella’s flair for fashion catches the eye of the Baroness von Hellman, a fashion legend who is devastatingly chic and terrifyingly haute. But their relationship sets in motion a course of events and revelations that will cause Estella to embrace her wicked side and become the raucous, fashionable and revenge-bent Cruella.","popularity":534.454,"poster_path":"/rTh4K5uw9HypmpGslcKd4QfHl93.jpg","release_date":"2021-05-26","title":"Cruella","video":false,"vote_average":8.3,"vote_count":5756},{"adult":false,"backdrop_path":null,"genre_ids":[80,35],"id":836454,"original_language":"en","original_title":"Cruella 2","overview":"Sequel to 2021's Cruella.","popularity":1.905,"poster_path":null,"release_date":"","title":"Cruella 2","video":false,"vote_average":0,"vote_count":0},{"adult":false,"backdrop_path":"/kuStRV9ItXESNvuEGDZMsm65yfv.jpg","genre_ids":[16,10751],"id":750955,"original_language":"en","original_title":"A Christmas Cruella","overview":"The ghosts of Christmases past, present and future haunt Cruella's dreams.","popularity":1.729,"poster_path":"/fuky5xZG2pZDwdeQFrllqNbC2Co.jpg","release_date":"1997-12-20","title":"A Christmas Cruella","video":false,"vote_average":0,"vote_count":0},{"adult":false,"backdrop_path":null,"genre_ids":[10751,99,16],"id":534112,"original_language":"en","original_title":"Cruella De Vil: Drawn to Be Bad","overview":"Bonus short on the 101 Dalmatians Diamond Edition Blu-ray featuring interviews with the people who worked on the movie.","popularity":2.849,"poster_path":"/47jLL1HGnwNrqC7nDhOCLuFX5id.jpg","release_date":"2008-03-04","title":"Cruella De Vil: Drawn to Be Bad","video":true,"vote_average":0,"vote_count":0},{"adult":false,"backdrop_path":"/zIVwv4lgm0FwxbEcjILGcz0hAKL.jpg","genre_ids":[],"id":324895,"original_language":"nl","original_title":"Mega Mindy - Della Cruella","overview":"","popularity":0.941,"poster_path":"/tns1HkyOSVipEAu2kd5ouTMkS4d.jpg","release_date":"2014-05-15","title":"Mega Mindy - Della Cruella","video":false,"vote_average":5,"vote_count":2}],"total_pages":1,"total_results":5}

I noticed that the other host that does get a valid response resolves the URL to a different IP.  Is it possible that just one of themoviedb.org servers is having issues and is causing this error?

All other Meta-Data providers are operating normally, and no other issues with KODI are being experienced at this time.

Full Kodi.log
Part 1
Part 2
Part 3
Part 4
Part 5
Reply
#2
I flushed the DNS cache in order to try to connect to a different themoviedb.org server.  The URL now resolves to a different IP address, but I am still getting the same message.
Reply
#3
You did not enable debug mode so there is nothing to see in the log. Try again... Debug Log
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#4
It looks like the server is responding to the request with a 422 status code.

wget https://api.themoviedb.org/3/search/movi...anguage=en
Connecting to api.themoviedb.org (65.8.20.119:443)
wget: server returned error: HTTP/1.1 422 Unknown
Reply
#5
(2021-10-27, 19:31)Karellen Wrote: You did not enable debug mode so there is nothing to see in the log. Try again... Debug Log

Here is the requested Debug Log.

https://paste.kodi.tv/luzikuluya.kodi
Reply
#6
(2021-10-27, 19:31)DugieHowsa Wrote: wget https://api.themoviedb.org/3/search/movi...anguage=en
Connecting to api.themoviedb.org (65.8.20.119:443)
wget: server returned error: HTTP/1.1 422 Unknown
Open your web browser and click on that link. What do you see?
I click on it and I see the expected API return.
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#7
(2021-10-27, 20:28)Karellen Wrote:
(2021-10-27, 19:31)DugieHowsa Wrote: wget https://api.themoviedb.org/3/search/movi...anguage=en
Connecting to api.themoviedb.org (65.8.20.119:443)
wget: server returned error: HTTP/1.1 422 Unknown
Open your web browser and click on that link. What do you see?
I click on it and I see the expected API return.
I receive the expected results as well when accessing the URL from a host other than the one that is running KODI.  Not sure why only the KODI host is having a problem.  The KODI application is experiencing the issue, as well as when I attempt to use WGET or CURL from the command line of the KODI system.

Packet capture shows the servers returning the following message:

Image

Let me know if you want access to the full PCAP.
Reply
#8
they might be doing user agent filtering.
Reply
#9
(2021-10-27, 22:06)wsnipex Wrote: they might be doing user agent filtering.

Is it possible to modify the moviedb addon to use http instead of https for the purpose of troubleshooting?  I did not see any option for this in the ADDON -> Configure Settings.  It would make it easier to troubleshoot if I could see the HTTP protocol in clear text.
Reply
#10
(2021-10-27, 23:13)DugieHowsa Wrote: Is it possible to modify the moviedb addon to use http instead of https for the purpose of troubleshooting? 
I don't know which scraper you are using, but these might help...

https://github.com/xbmc/repo-scrapers/pull/58
https://github.com/xbmc/repo-scrapers/pull/26
My Signature
Links to : Official:Forum rules (wiki) | Official:Forum rules/Banned add-ons (wiki) | Debug Log (wiki)
Links to : HOW-TO:Create Music Library (wiki) | HOW-TO:Create_Video_Library (wiki)  ||  Artwork (wiki) | Basic controls (wiki) | Import-export library (wiki) | Movie sets (wiki) | Movie universe (wiki) | NFO files (wiki) | Quick start guide (wiki)
Reply
#11
(2021-10-27, 19:31)DugieHowsa Wrote: It looks like the server is responding to the request with a 422 status code.

wget https://api.themoviedb.org/3/search/movi...anguage=en
Connecting to api.themoviedb.org (65.8.20.119:443)
wget: server returned error: HTTP/1.1 422 Unknown
Is suspect the 422 is simply because you are trying this in Windows and forgetting to use the quotes on the URL, so the parameters are getting dropped.

Martin
Reply
#12
(2021-10-28, 00:26)emveepee Wrote:
(2021-10-27, 19:31)DugieHowsa Wrote: It looks like the server is responding to the request with a 422 status code.

wget https://api.themoviedb.org/3/search/movi...anguage=en
Connecting to api.themoviedb.org (65.8.20.119:443)
wget: server returned error: HTTP/1.1 422 Unknown
Is suspect the 422 is simply because you are trying this in Windows and forgetting to use the quotes on the URL, so the parameters are getting dropped.

Martin
I am not using Windows.  I am using LibreELEC.
Reply
#13
(2021-10-28, 03:46)DugieHowsa Wrote: am not using Windows.  I am using LibreELEC
I was referring to your wget test.  I still believe the 422 was a fault of the URL you were using.

Martin
Reply
#14
(2021-10-28, 05:20)emveepee Wrote:
(2021-10-28, 03:46)DugieHowsa Wrote: am not using Windows.  I am using LibreELEC
I was referring to your wget test.  I still believe the 422 was a fault of the URL you were using.

Martin
The wget test was run on LibreELEC.  The PCAP was copied off of LibreELEC and viewed in Wireshark on Windows.
Reply
#15
Here are the available Movie Information addons installed on the system.

Image

The Movie Library was configured to use "The Movie Database".  I switched it to use "The Movie Database Python".

Although a match was found, a few ERRORS were still produced.

Logs

So, I guess we can chalk this up to partial workaround.
Reply

Logout Mark Read Team Forum Stats Members Help
themoviedb.org lookups have been failing since October 26 20210