Assistance de TMDB

I've been using the API for a very long time but this is the first time I have ever encountered this error, and it only happens in the backend of my application. Front end requests work as they should. But anytime I'm sending a GET request to search for a TV show or movie I get a connect EHOSTREACH Error. Any ideas?

5 réponses (sur la page 1 sur 1)

Jump to last post

Hi @FriiZoLoGYy,

Unfortunately I've never seen or heard of such an error. Where are you seeing this? On what platform? Doing what exactly?

I'm using it in my application to get information on movies & tv shows. its in a node.js express environment using node-fetch to make the request to the api. I've spoken to my hosting provider and they have triple checked their side and have found nothing and confirmed that its something on the apis end. obviously its not on the apis end.

another error i have been get a lot lately as well is

FetchError: request to https://api.themoviedb.org/3/search/movie?api_key=MYAPIKEY&language=en-US&query=Transporter%202&year=2005&page=1&include_adult=false failed, reason: connect ETIMEDOUT 2600:9000:2137:2a00:c:174a:c400:93a1:443
at ClientRequest.<anonymous> (/var/www/html/phantommovies.com/node_modules/node-fetch/lib/index.js:1501:11)
at ClientRequest.emit (node:events:514:28)
at TLSSocket.socketErrorListener (node:_http_client:501:9)
at TLSSocket.emit (node:events:514:28)
at emitErrorNT (node:internal/streams/destroy:151:8)
at emitErrorCloseNT (node:internal/streams/destroy:116:3)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21) {
type: 'system',
errno: 'ETIMEDOUT',
code: 'ETIMEDOUT'
 }

Hi @FriiZoLoGYy, I am wondering if you mistyped the first error EHOSTREACH instead of EHOSTUNREACH, the latter is a known error. Here is a short article that explains some of the common node.js errors.

It appears that maybe you might have a problem with routing to the tmdb server, that is, a problem on your system or in the network between your system and tmdb. I see you are running on linux so you might want to experiment with "traceroute" and see if you can find out where things are going wrong.

@robbie3999 said:

Hi @FriiZoLoGYy, I am wondering if you mistyped the first error EHOSTREACH instead of EHOSTUNREACH, the latter is a known error. Here is a short article that explains some of the common node.js errors.

It appears that maybe you might have a problem with routing to the tmdb server, that is, a problem on your system or in the network between your system and tmdb. I see you are running on linux so you might want to experiment with "traceroute" and see if you can find out where things are going wrong.

You are correct definitely miss typed first error, I think I'm just ganna end up rewriting the application and seeing if that does the fix

Update: I believe I have solved this issue (lets hope) After many weeks of troubleshooting & reconfiguring cloudflare to have the same issue keep happening I realized some of the error had deal with node.js. With that in mind I started checking node versions on all systems and had learned my VPS was not running the same node version as my local system. VPS was running node v18 latest while my local runs v16, so I downgraded the VPS to node v16 and as of now the error has not happened at all.

Un film, une émission télévisée ou un artiste est introuvable ? Connectez-vous afin de créer une nouvelle fiche.

Général

s Mettre le curseur dans la barre de recherche
p Ouvrir le menu du profil
esc Fermer une fenêtre ouverte
? Ouvrir la fenêtre des raccourcis clavier

Sur les pages des médias

b Retour (ou vers le parent si faisable)
e Afficher la page de modification

Sur les pages des saisons des émissions télévisées

Afficher la saison suivante (flèche droite)
Afficher la saison précédente (flèche gauche)

Sur les pages des épisodes des émissions télévisées

Afficher l'épisode suivant (flèche droite)
Afficher l'épisode précédent (flèche gauche)

Sur toutes les pages des images / photos

a Ouvrir la fenêtre d'ajout d'image / photo

Sur toutes les pages de modifications

t Ouvrir le sélecteur de traduction
ctrl+ s Envoyer le formulaire

Sur les pages des discussions

n Créer une nouvelle discussion
w Basculer le statut de suivi
p Basculer publique / privée
c Basculer fermer / ouvrir
a Ouvrir l'activité
r Répondre à la discussion
l Afficher la dernière réponse
ctrl+ enter Envoyer votre message
Page suivante (flèche droite)
Page précédente (flèche gauche)

Paramètres

Vous souhaitez évaluer ou ajouter cet élément à une liste ?

Connexion