Suport de The Movie Database

Hello,

For your information, I am currently receiving several 404 errors even though the URL definitely exists. When I make a request again after that, I get a 200 response just fine.

I don鈥檛 think the issue is on my end鈥擨鈥檝e tried with multiple DNS providers (Cloudflare and Google) and I鈥檓 getting the same result.

In the error response, I found this:

status: 404,  
  statusText: 'Not Found',  
  headers: Object [AxiosHeaders] {  
    'content-type': 'application/json;charset=utf-8',  
    'transfer-encoding': 'chunked',  
    connection: 'keep-alive',  
    date: 'Sat, 29 Mar 2025 09:50:47 GMT',  
    server: 'openresty',  
    vary: 'Accept-Encoding,accept-encoding, Origin',  
    'x-cache': 'Error from cloudfront',  
    via: '1.1 1675c96d31e7d6eacf2a9135ddb13210.cloudfront.net (CloudFront)',  
    'x-amz-cf-pop': 'LHR50-P2',  
    'alt-svc': 'h3=":443"; ma=86400',  
    'x-amz-cf-id': 'IR8K2gUmCYkfiwhLPUBiLYEuYhKqegbPxQRjO4xZXqR3rznLQVfgGQ==',  
    age: '3'  
  },

8 resposta (a les p脿gines 1 de 1)

Jump to last post

@TheSizkarn said:
Error 404
Hello,
For your information, I am currently receiving several 404 errors even though the URL definitely exists.
When I make a request again after that, I get a 200 response just fine.

TMDb server error messages have text.
This error response you received appears to have no text.
statusText: 'Not Found',
Here is a list of TMDb error responses.
https://developer.themoviedb.org/docs/errors

I don鈥檛 think the issue is on my end鈥擨鈥檝e tried with multiple DNS providers (Cloudflare and Google) and I鈥檓 getting the same result.
In the error response, I found this:

status: 404,  
  statusText: 'Not Found',  
  headers: Object [AxiosHeaders] {  
    'content-type': 'application/json;charset=utf-8',  
    'transfer-encoding': 'chunked',  
    connection: 'keep-alive',  
    date: 'Sat, 29 Mar 2025 09:50:47 GMT',  
    server: 'openresty',  
    vary: 'Accept-Encoding,accept-encoding, Origin',  
    'x-cache': 'Error from cloudfront',  
    via: '1.1 1675c96d31e7d6eacf2a9135ddb13210.cloudfront.net (CloudFront)',  
    'x-amz-cf-pop': 'LHR50-P2',  
    'alt-svc': 'h3=":443"; ma=86400',  
    'x-amz-cf-id': 'IR8K2gUmCYkfiwhLPUBiLYEuYhKqegbPxQRjO4xZXqR3rznLQVfgGQ==',  
    age: '3'  
  },

It appears that the 404 error response you received was sent by some system before reaching our servers.
It is possible that this is an issue with Axios.
There have been several issues with axios in the past.
See if these conversations can help you, if it is indeed an issue with Axios.

Axios Issues
https://www.themoviedb.org/talk/63e3d510db154f00812e67c6
https://www.themoviedb.org/talk/6037bbc2afa1b00043a76e2c
https://www.themoviedb.org/talk/5f621eae93388b003864513c
https://www.themoviedb.org/talk/5f55e3dd713ed40037f090d4
https://www.themoviedb.org/talk/5d5901d21749730017dd837a
https://www.themoviedb.org/talk/5bab86480e0a2664d4022f98

Even when not using Axios, I encounter the same issue. I鈥檓 sharing the response I get with a simple fetch:

Response {
  status: 404,
  statusText: 'Not Found',
  headers: Headers {
    'content-type': 'application/json;charset=utf-8',
    'transfer-encoding': 'chunked',
    connection: 'keep-alive',
    date: 'Sat, 29 Mar 2025 14:33:45 GMT',
    server: 'openresty',
    'content-encoding': 'gzip',
    vary: 'Accept-Encoding,accept-encoding, Origin',
    'x-cache': 'Error from cloudfront',
    via: '1.1 6fb11804c1310b9bb47e7088f05a3d58.cloudfront.net (CloudFront)',
    'x-amz-cf-pop': 'CDG50-C1',
    'alt-svc': 'h3=":443"; ma=86400',
    'x-amz-cf-id': 'glgQQYSLCRjcYYV3ZtStJUImT_RdxZMOCBiivfUZwHv-wjy5JH5AUw=='
  },
  body: ReadableStream { locked: false, state: 'readable', supportsBYOB: true },
  bodyUsed: false,
  ok: false,
  redirected: false,
  type: 'basic',
  url: 'https://api.themoviedb.org/3/tv/221440/season/46?language=fr-FR'
}

Once again, when I make another request to the same endpoint with the same ID, I successfully get a 200 response. You can verify that the example endpoint provided above works correctly.

In my code, I鈥檓 simply doing this:

const response = await fetch(
            `${TMDB_API_URL}/${season.series.tmdbId}/season/${season.seasonNumber}?language=fr-FR`,
            {
              method: 'GET',
              headers: {
                Authorization: `Bearer ${TMDB_API_TOKEN}`,
              },
            }
)

 if (!response.ok) {
       console.log(response)
       throw new Error(`HTTP error! status: ${response.status}`)
}

const data = await response.json()

This series only has one season, the 46th.
Japan Academy Film Prize Award Ceremony
Https://www.themoviedb.org/tv/221440?language=en-US
And this season 46 only has one episode.
Https://www.themoviedb.org/tv/221440/season/46/translations?language=zh-CN
Try to change in your API Request from fr-FR to zh-CN.

It鈥檚 pretty funny to see that a moderator doesn鈥檛 even know that the "language" parameter has no impact on the endpoint if its translation isn鈥檛 available.

Once again, the 404 occurs randomly on any endpoint of the API, and when I make a new request to the same one without changing anything, I receive a 200.

I鈥檓 convinced that the issue isn鈥檛 on my end but comes from TMDB鈥檚 servers.

:-)
Yes, without a doubt it looks funny.
Some time ago API Requests with the fr-FR parameter started to give strange problems.
So, because of this history, I asked you to try with zh-CN.
But if you are sure that the problem is with our server having an erratic behavior, let's wait for Adm Travis Bell to pass by here.
Only he will know how to give a good answer to your problem.
Let's wait for him to pass by here.

Alright, I wasn鈥檛 aware of this issue regarding the fr-FR language. In that case, yes, let鈥檚 wait for the boss, haha! Thx ticao.

It seems like it's still not really resolved. I'm not sure if it only concerns the fr-FR language, but I still randomly get 404 errors even though the URL exists.

@TheSizkarn said:
It seems like it's still not really resolved.
I'm not sure if it only concerns the fr-FR language,
but I still randomly get 404 errors even though the URL exists.

Well, considering that I haven't seen any other user reporting this type of problem, I'm starting to suspect that the error may be due to some combination of factors involving the TMDb Servers and other elements involved in the Request from your device, some Firewall, DNS, your ISP, etc...
I believe the admin's first question will be:
What is the complete error message?
There may be two generated by the TMDb servers.
Please let us know which one you receive.

Code    HTTP    Message  

6       404     Invalid id: The pre-requisite id is invalid or not found.  
37      404     The requested session could not be found.  

No trobeu una pel路l铆cula o una s猫rie? Inicieu la sessi贸 per a crear-la.

Global

s centra la barra de cerca
p obre el men煤 del perfil
esc tanca una finestra oberta
? obre la finestra de dreceres de teclat

A les p脿gines de materials

b torna enrere (o la superior quan sigui aplicable)
e ves a la p脿gina d鈥檈dici贸

A les p脿gines de temporades

(fletxa dreta) ves a la temporada seg眉ent
(fletxa esquerra) ves a la temporada anterior

A les p脿gines d'episodis

(fletxa dreta) ves a l'episodi seg眉ent
(fletxa esquerra) ves a l'episodi anterior

A totes les p脿gines d'imatges

a obre la finestra d'afegir imatges

A totes les p脿gines d'edici贸

t obre el selector de traducci贸
ctrl+ s envia el formulari

A les p脿gines de debat

n crea un debat nou
w canvia l'estat de visualitzaci贸
p canvia p煤blic/privat
c tanca o obre
a obre activitat
r resposta al debat
l ves a la darrera resposta
ctrl+ enter envieu el vostre missatge
(fletxa dreta) p脿gina seg眉ent
(fletxa esquerra) p脿gina anterior

Configuracions

Desitgeu valorar o afegir aquest element a una llista?

Inicieu la sessi贸