When using KODI I get the following message when I try to fetch data from the movie databse (I tried many different movies, searches etc... ). The error message is always the same.
{"status_code":34,"status_message":"The resource you requested could not be found."}
I think its nothing to do with KODI because, I get the same message when using CURL directly from the command line, for instance if I try to get info about the film "Valkyrie" i type the following.
curl -o output.txt http://api.tmdb.org/3/search/movie?api_key=57983e31f*******************************&query=Valkyrie&year=2008&language=en
I dont think its a problem with the key, because I tried to use a wrong key, and then I get an error message about the key instead.
Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.
Vous souhaitez évaluer ou ajouter cet élément à une liste ?
Pas encore membre ?
Réponse de Dale
le 11 août 2015 à 14h43
The URL works with my own Key, might be that KODI are not handling the status code 34. I ran into a similar issue with my own app, something changed and things started returning status code 34. I found putting a retry into my app and the resource came back.
Réponse de perthi
le 11 août 2015 à 16h14
Yes, but the problem is the same also when I use CURL on the command line. Seems that actually, the resource is not available.
Réponse de Travis Bell
le 12 août 2015 à 10h02
Hi perthi,
This call seems to be working fine for me (with your API key, I've truncated it for privacy reasons):
Are you sure you're entering your API key correctly? The key you posted above is 5798... when the one I see in your account is 8aa7d...
Réponse de perthi
le 12 août 2015 à 13h18
Hi again, thanks for helping out. The problem is not the keys, I have two keys, one came with Kodi, and the otherone I aplied for exactly in order to debug this problem. I addition I also get another error messageabout invalid key if I purposely enter an incorrect key,.. so I think e can exclude the keys as the source of the problem.
Below is the output I get if I enter excactly the same command as you show above.
Réponse de Travis Bell
le 12 août 2015 à 16h39
Ah, you're getting status 34, for something reason I thought 7, "invalid key".
Remove the trailing slash in your URL:
You have:
See the difference?
Réponse de perthi
le 13 août 2015 à 13h46
Yes, I do, I dont know how the / sneaked in, but anyway, I still get the same message. Now U just copy and pase your command just to be sure (I just replace the key)''
Réponse de perthi
le 13 août 2015 à 13h52
I think the line
Is important, in you output it says 201 OK
I am able to ping api.tmdb.org, but maybe a firewall/port forwarding issues ? Is it any particular port I need to open (I think the SSL port is set to port forwarding)
Réponse de Travis Bell
le 13 août 2015 à 15h04
In your curl command you don't have a trailing slash but you do in the cURL response. Something weird is going on, on your end. I've tried this cURL command on 3 machines and asked 2 friends and we can all access this request.
404 is right if the resource can't be found, which is right with the trailing slash.
Try wrapping your cURL command in single quotes:
Réponse de perthi
le 13 août 2015 à 16h14
YESS!!! That worked, I dont really understand why,
But still, this is when use curl form the command line, when I try update from Kodi the problem is still the same
Réponse de perthi
le 13 août 2015 à 16h18
From the kodi log I now get this error (still), the cause is probably the same, but how to fix it ?
Réponse de Travis Bell
le 13 août 2015 à 16h34
That looks like a different error, but I am not sure.
"timeout" was reached, and "failed with code 0" sounds like a connection problem. Probably best to post this on the Kodi forums and see what they have to say about it.
Réponse de perthi
le 18 août 2015 à 16h27
OK, i will try at the Kodi forum as well, and update you on the result of the inquiry here.