Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

1.9K
Vistas
Axios.get is showing Network Error when made get request

I am building a react app and I am trying to make get request using axios, I am trying to access imdb page like :-

https://www.imdb.com/find?q=Tom%20Hanks

But when I call the axios then it is showing

AxiosError {message: 'Network Error', name: 'AxiosError', code: 'ERR_NETWORK', config: {…}, request: XMLHttpRequest, …} code: "ERR_NETWORK" config: {transitional: {…}, transformRequest: Array(1), transformResponse: Array(1), timeout: 0, adapter: ƒ, …} message: "Network Error" name: "AxiosError" request: XMLHttpRequest {data: undefined, onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, …} response: XMLHttpRequest {data: undefined, onreadystatechange: null, readyState: 4, timeout: 0, withCredentials: false, …} [[Prototype]]: Error

But When I try to access localhost using axios then it is working fine But not working with imdb

then I tried accessing imdb with python requests then it is showing 200 SUCCESS.

I have tried many times But it is showing that error everytime.

App.js

class App extends React.Component {
    componentDidMount() {
           axios.get('https://www.imdb.com/find?q=Tom%20Hanks').then(res => {
             console.log(res)
          }).catch(err => {console.log(err)})
    }

    render() {
      return(<div>Good Luck</div>)
   }
}

Any help would be much Appreciated.

about 4 years ago · Juan Pablo Isaza
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda