The Movie Database Support

https://api.themoviedb.org/3/movie/592834?api_key=[THE_KEY]&language=tr-TR&append_to_response=credits&certification_country=US&certification.lte=R

response:

{"status_code":34,"status_message":"The resource you requested could not be found."}

what is the reason of this? Works in POSTMAN application but not on server

2 replies (on page 1 of 1)

Jump to last post

First of all, I replaced your API Key with THE_KEY.
So this conversation can remain public without the risk of someone stealing your API Key.

The movie you're looking for is this:
https://www.themoviedb.org/movie/592834-my-spy

The API Request you posted, get / movie / {movie_id},

https://api.themoviedb.org/3/movie/592834?api_key=[THE_KEY]&language=tr-TR&append_to_response=credits&certification_country=US&certification.lte=R

looks like it is using filter features from the API Request get / discover / movie.
The last two parameters you used,
&certification_country=US and &certification.lte=R,
are used only in discover requests, not get/movie requests.

I made your request and received only the data for a normal get / movie / {movie_id}.
https://api.themoviedb.org/3/movie/592834?api_key=[THE_KEY]&language=tr-TR&append_to_response=credits&certification_country=US&certification.lte=R
The two extra parameters were disregarded.
I don't know why you got that answer:

response: {"status_code":34,"status_message":"The resource you requested could not be found."}

I think it is worth checking if this was the API Request sent.
I received an answer without problems.

As for the fact that POSTMA is able to obtain results with exactly the same Requisition, I cannot explain the reason.
Only the creators of POSTM can inform.
Perhaps the answer that Postman received was the same as I received.


EDIT
This response code

 {"status_code":34,"status_message":"The resource you requested could not be found."}  

always appears when there is an error in the TMDb ID, and the ID sent refers to an entry for a movie that has been deleted.
The error may be in the ID.

I found the answer: worked when ajax post type was removed.

this working state:

        $.ajax({
            url: "https://api.themoviedb.org/3/movie/" + id + "?api_key=api_key&language=tr-TR&append_to_response=credits&certification_country=US&certification.lte=R",
            contentType: "application/json",
       dataType: 'json',
            success: function (data) {
                console.log(data);

            },
            error: function (data) {

            }
        });

this not working state:

        $.ajax({
            url: "https://api.themoviedb.org/3/movie/" + id + "?api_key=api_key&language=tr-TR&append_to_response=credits&certification_country=US&certification.lte=R",
          **type:'POST'**
            contentType: "application/json",
       dataType: 'json',
            success: function (data) {
                console.log(data);

            },
            error: function (data) {

            }
        });

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p open profile menu
esc close an open window
? open keyboard shortcut window

On media pages

b go back (or to parent when applicable)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Settings

Want to rate or add this item to a list?

Login