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?
لم تجد الفلم أو المسلسل ؟ سجل دخولك و انشئها
هل تريد تقييم او اضافة هذا العنصر للقائمة؟
لست عضو؟
رد بواسطة Travis Bell
بتاريخ أغسطس 30, 2023 في 12:23 مساءا
Hi @FriiZoLoGYy,
Unfortunately I've never seen or heard of such an error. Where are you seeing this? On what platform? Doing what exactly?
رد بواسطة FriiZoLoGYy
بتاريخ أغسطس 31, 2023 في 9:11 مساءا
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
رد بواسطة robbie3999
بتاريخ سبتمبر 1, 2023 في 5:25 مساءا
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.
رد بواسطة FriiZoLoGYy
بتاريخ سبتمبر 4, 2023 في 12:03 صباحا
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
رد بواسطة FriiZoLoGYy
بتاريخ سبتمبر 14, 2023 في 10:49 صباحا
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.