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

202
Vistas
Unable to catch Network Error when sending request using Inertia + Vue

While sending a this.$inertia.patch request I'm unable to catch a Network Error. I'm turning off the backend server to emulate a lost connection. The console shows: Uncaught (in promise) Error: Network Error.

I've tried Inertia's onError, tried adding a .catch after the request as well as a separate try...catch and used the Vue 2's

errorCaptured: function(err) {
   console.log('Caught error', err.message)
},

I can give more details if needed.

So basically trying to catch net::ERR_CONNECTION_REFUSED

Edit: I moved to using onFinish along with onSuccess and onStart, but finally used axios

about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

Use onStart along with onSuccess and onFinish:

  • In the case of a network error, onFinish will trigger without onSuccess.
  • In the case of a server error onError will trigger with onFinish
about 4 years ago · Juan Pablo Isaza Denunciar
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