vue-storefront icon indicating copy to clipboard operation
vue-storefront copied to clipboard

[SPIKE] Better error handling

Open sync-by-unito[bot] opened this issue 4 years ago • 1 comments
trafficstars

At this moment we present errors without any formatting, and very often they are useless when it comes to debugging and understanding errors. In this spike please do research for:

  • How to present a better stack trace in the nuxt.js
  • How to show the errors from the middleware in nuxt.js error page (if it's even possible)
  • Throwing readable errors in integrations for the most common scenarios: eg in commercetools when someone is loading so many items let's translate error "to many items" to something like "you are loading to many items, please limit items by using search({ ... limit: X }) call" (or something like this)

sync-by-unito[bot] avatar Apr 23 '21 08:04 sync-by-unito[bot]

➤ Matt Pietrusinski commented:

For better understanding network errors i’m propose an object with this scheme to be displayed in terminal.

{ errorType: ENUM; code: number; error: string; message: string; failedFunction: string; }E.g.

!Zrzut ekranu 2021-05-27 o 12.23.31.png|width=699,height=198!

sync-by-unito[bot] avatar May 27 '21 11:05 sync-by-unito[bot]

Issue is closed. Reason: Too Old (>6 months)


Sergii Kirianov

Developer Advocate

Vue Storefront

skirianov avatar Jan 18 '23 10:01 skirianov