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.
Nevari atrast filmu vai TV pārraidi? Jāpiesakās, lai to izveidotu.
Vēlies novērtēt šo vienumu vai pievienot to sarakstam?
Neesi dalībnieks?
Atbilde no Dale
on augusts 11, 2015 at 2:43 PM
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.
Atbilde no perthi
on augusts 11, 2015 at 4:14 PM
Yes, but the problem is the same also when I use CURL on the command line. Seems that actually, the resource is not available.
Atbilde no Travis Bell
on augusts 12, 2015 at 10:02 AM
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...
Atbilde no perthi
on augusts 12, 2015 at 1:18 PM
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.
Atbilde no Travis Bell
on augusts 12, 2015 at 4:39 PM
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?
Atbilde no perthi
on augusts 13, 2015 at 1:46 PM
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)''
Atbilde no perthi
on augusts 13, 2015 at 1:52 PM
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)
Atbilde no Travis Bell
on augusts 13, 2015 at 3:04 PM
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:
Atbilde no perthi
on augusts 13, 2015 at 4:14 PM
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
Atbilde no perthi
on augusts 13, 2015 at 4:18 PM
From the kodi log I now get this error (still), the cause is probably the same, but how to fix it ?
Atbilde no Travis Bell
on augusts 13, 2015 at 4:34 PM
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.
Atbilde no perthi
on augusts 18, 2015 at 4:27 PM
OK, i will try at the Kodi forum as well, and update you on the result of the inquiry here.