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"
Can't find a movie or TV show? Login to create it.
Ma doonaysaa inaad qiimayso ama ku darto shaygan liiska?
Ma aha xubin?
Reply by ticao2 š§š· pt-BR
on January 21, 2025 at 10:10 AM
I couldn't find any Movie, TV Show or Person with that name, Instellar, in the TMDb database.
Maybe that's the problem.
Reply by hypelist
on January 21, 2025 at 10:42 AM
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
Reply by ticao2 š§š· pt-BR
on January 21, 2025 at 10:54 AM
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.
Reply by hypelist
on January 21, 2025 at 1:05 PM
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"
Reply by ticao2 š§š· pt-BR
on January 21, 2025 at 4:38 PM
I asked for the constructed Request and not its code.
So I can only deduce the below.
In all the Requests you used the colon character, : , as a separator, when you should have used the equal sign, = .
Example:
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, ? .
Reply by Travis Bell
on January 21, 2025 at 5:10 PM
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.
Reply by hypelist
on January 22, 2025 at 2:50 AM
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