The Movie Database Support

We are getting a large amount of code: "ERR_BAD_RESPONSE", with the error message "Internal error: Something went wrong, contact TMDb". We have not modified our integration with the API which has been working fine up until now. How do we debug this? One example is a request to https://api.themoviedb.org/3/search/multi with params: include_adult: false language: "en-US" page: 1 query: "Instellar"

7 replies (on page 1 of 1)

Jump to last post

@hypelist said:
API is returning high incidents of 500 errors
We are getting a large amount of code: "ERR_BAD_RESPONSE", with the error message "Internal error: Something went wrong, contact TMDb".
We have not modified our integration with the API which has been working fine up until now.
How do we debug this?
One example is a request to https://api.themoviedb.org/3/search/multi with params:
include_adult: false
language: "en-US"
page: 1
query: "Instellar"

I couldn't find any Movie, TV Show or Person with that name, Instellar, in the TMDb database.
Maybe that's the problem.

That is just one example, we have many failing queries, as well as queries that are failing when try to fetch a particular film or tv show using it's ID

@hypelist said:

That is just one example, we have many failing queries, as well as queries that are failing when try to fetch a particular film or tv show using it's ID

I see.
Please post here some API Requests. 3 or 4, which returned this error message.
11 - 500 - Internal error: Something went wrong, contact TMDb.

Problems with API Request

In order for someone to help you with API Request questions,
it is critical that you post here the API Request you are sending to the TMDb server.
Remember to replace your Key with MY_KEY , YOUR_KEY , THE_KEY , or something like that.

Not the programming code/script you used to build the API Request.
But the API Request that is sent to the TMDb server.
Or the API Request you would like to send.

1.GET https://api.themoviedb.org/3/search/multi { api_key: "my_key" include_adult: false language: "en-US" page: 1 query: "The ballad" }

2.GET https://api.themoviedb.org/3/search/multi { api_key: "my_key" include_adult: false language: "en-US" page: 1 query: "Dr. Hpuse" }

3.GET https://api.themoviedb.org/3/search/multi { api_key: "my_key" include_adult: false language: "es" page: 1 query: "Sweet tooth" }

4.GET https://api.themoviedb.org/3/movie/5140149/credits { api_key: "my_key" language: "en" }

All of these request returned 500 error: code: "ERR_BAD_REQUEST" or code: "ERR_BAD_RESPONSE"

I asked for the constructed Request and not its code.
So I can only deduce the below.

@hypelist said:

1.GET https://api.themoviedb.org/3/search/multi { api_key: "my_key" include_adult: false language: "en-US" page: 1 query: "The ballad" }

2.GET https://api.themoviedb.org/3/search/multi { api_key: "my_key" include_adult: false language: "en-US" page: 1 query: "Dr. Hpuse" }

3.GET https://api.themoviedb.org/3/search/multi { api_key: "my_key" include_adult: false language: "es" page: 1 query: "Sweet tooth" }

4.GET https://api.themoviedb.org/3/movie/5140149/credits { api_key: "my_key" language: "en" }

All of these request returned 500 error: code: "ERR_BAD_REQUEST" or code: "ERR_BAD_RESPONSE"

In all the Requests you used the colon character, : , as a separator, when you should have used the equal sign, = .
Example:

https://api.themoviedb.org/3/search/multi?api_key=THE_KEY&&include_adult=false&language=en-US&page=1&query=The+ballad

Regarding the query for the first three:
The ballad - Does not exist in the database. There are several with this term as part of the title.
Dr. Hpuse - Does not exist. Maybe you want Dr. House
Sweet tooth - There is at least one Movie and one TV Show

As for the last one.
There is no movie with this ID 5140149.
Today the highest ID is 1421415

All Requests are missing the Question Mark character, ? .

For approximately 45 minutes this morning, sometime around ~7:00 AM MST, our search service was struggling due to a higher than normal load. I've been continuing to monitor it throughout the day.

Hi Travis, thanks for letting me know, this could be the reason. I would assume that a search that doesn't return any results shouldn't return a 500 error with the error message Internal error: Something went wrong, contact TMDb. , which is what we were getting for many of these requests. Things seem to have stabilised now though

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?

Đăng nhập