Nuxt.js: NuxtServerError - Request failed with status code 500 - No indication of which API call failed

Created on 21 Feb 2019  路  2Comments  路  Source: nuxt/nuxt.js

Version

v2.4.0

Reproduction link

https://github.com/kalenjordan/pros.global

Steps to reproduce

I'm not exactly sure how to reproduce, but usually within 2 to 8 hours it happens on my app (https://pros.global). It seems that axios is hitting a 500 error response but I have no indication of what API request failed exactly.

NuxtServerError
Request failed with status code 500
/home/forge/pros.global/node_modules/axios/lib/core/createError.js in createError at line 16:15
/home/forge/pros.global/node_modules/axios/lib/core/settle.js in settle at line 18:12
/home/forge/pros.global/node_modules/axios/lib/adapters/http.js in IncomingMessage.handleStreamEnd at line 201:11
events.js in IncomingMessage.emit at line 187:15
domain.js in IncomingMessage.EventEmitter.emit at line 459:23
_stream_readable.js in endReadableNT at line 1094:12
internal/process/next_tick.js in process._tickCallback at line 63:19

What is expected ?

I would expect that I would have some way to know which API call failed in the error log.

What is actually happening?

There is no indication of which API call failed.

Additional comments?

Perhaps there is a way within axios to log all API requests that go through so that I could at least correlate the error to that log?

This bug report is available on Nuxt community (#c8707)
bug-report stale

All 2 comments

If you use the nuxt axios module you can set debug to true so all requests are logged (be aware of disk space issues if you are logging this to file and running for 8 hrs!): https://axios.nuxtjs.org/options#debug

Thanks for your contribution to Nuxt.js!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.
If you would like this issue to remain open:

  1. Verify that you can still reproduce the issue in the latest version of nuxt-edge
  2. Comment the steps to reproduce it

Issues that are labeled as 馃晲Pending will not be automatically marked as stale.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

o-alexandrov picture o-alexandrov  路  3Comments

uptownhr picture uptownhr  路  3Comments

jaredreich picture jaredreich  路  3Comments

danieloprado picture danieloprado  路  3Comments

lazycrazy picture lazycrazy  路  3Comments