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

240
Vistas
How to discard browser messages for fetch calls failing at DNS/TCP level (not server error code)?

I wanted to have in the console custom messages for fetch issues and thought that catching them would be enough:

fetch("https://thissitedoesnotexist.wazaa")
  .then((response) => {
    if (!response.ok) {
      throw Error(response.status);
    }
    console.log("Result: ", response);
  })
  .catch((error) => {
    console.log("Something went wrong: ", error.message)
  });

What I get, however, are two console messages: one from the browser itself telling that the name is not resolved, and then my custom message:

Failed to load resource: net::ERR_NAME_NOT_RESOLVED
Something went wrong:  Failed to fetch

Is there a way to discard the browser message?

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