The Movie Database Support

Hi. I use the api in nuxt. I make a request through composable useFetch, but I get an error when starting the application. FetchError: [GET] "https://api.themoviedb.org/3/movie/popular?language=en": fetch failed cause: TypeError: fetch failed cause: Error: connect ECONNREFUSED 127.0.0.1:443 I tried to make a request with jsonplaceholder and everything works correctly. What could be the problem? Thanks for the answer.

2 replies (on page 1 of 1)

Jump to last post

Hi @vlsv,

Something in your environment is returning a localhost address (127.0.0.1) as the IP address for api.themoviedb.org.

You could try changing nameservers wherever this environment is to either:

  • 8.8.8.8 (Google)
  • 9.9.9.9 (Quad9)
  • 1.1.1.1 (Cloudflare)

And see if the problem corrects itself. FYI: we have seen Cloudflare not always return the correct addresses so Google or Quad9 are your best bets.

Unfortunately, these didn't help. There is no such problem when between page navigations, only when starting the app...

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?

Login