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.
Non podes atopar unha película ou serie? Inicia sesión para creala.
Queres valorar ou engadir o elemento a unha listaxe?
Non es membro?
Resposta de Dale
no 11 de agosto do 2015 ás 2:43PM
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.
Resposta de perthi
no 11 de agosto do 2015 ás 4:14PM
Yes, but the problem is the same also when I use CURL on the command line. Seems that actually, the resource is not available.
Resposta de Travis Bell
no 12 de agosto do 2015 ás 10:02AM
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...
Resposta de perthi
no 12 de agosto do 2015 ás 1:18PM
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.
Resposta de Travis Bell
no 12 de agosto do 2015 ás 4:39PM
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?
Resposta de perthi
no 13 de agosto do 2015 ás 1:46PM
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)''
Resposta de perthi
no 13 de agosto do 2015 ás 1:52PM
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)
Resposta de Travis Bell
no 13 de agosto do 2015 ás 3:04PM
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:
Resposta de perthi
no 13 de agosto do 2015 ás 4:14PM
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
Resposta de perthi
no 13 de agosto do 2015 ás 4:18PM
From the kodi log I now get this error (still), the cause is probably the same, but how to fix it ?
Resposta de Travis Bell
no 13 de agosto do 2015 ás 4:34PM
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.
Resposta de perthi
no 18 de agosto do 2015 ás 4:27PM
OK, i will try at the Kodi forum as well, and update you on the result of the inquiry here.