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

155
Vistas
Get server response before axios response wrapper for functions

What I did

  • Set response wrapper for functions, services, and repositories class for Axios. This is called RepositoryResponse
  • Every request now will be in one structure {status,message,data, error, meta}

Now, from the backend, I am returning a downloadable Excel file as

 return Excel::download($report, 'coupons-report.xlsx');

What I see

The server response comes correctly and this is what I need to have. But when I log the response in the function, it comes empty.

Here is an image of what I mean The top response is the "raw" response (my target). However, the below one is the one I am getting when I return the response from this.$axios.get.

My question is how can I get the data on the top?

enter image description here

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