Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Object.error [as handleError] (src/error-handling.js:4:13) #121

Open
jimmydju opened this issue Mar 10, 2024 · 0 comments
Open

Object.error [as handleError] (src/error-handling.js:4:13) #121

jimmydju opened this issue Mar 10, 2024 · 0 comments

Comments

@jimmydju
Copy link

Hi @goldbergyoni ,

When running npm run test as part of the workshop preparation, I get heaps of error related to Object.error

  2 | const errorHandler = {
  3 |   handleError: async (errorToHandle) => {
> 4 |     console.error(errorToHandle);
    |             ^
  5 |     metricsExporter.fireMetric('error', {
  6 |       errorName: errorToHandle.name || 'generic-error',
  7 |     });

  at Object.error [as handleError] (src/error-handling.js:4:13)
  at handleError (src/entry-points/sensors-api.js:110:24)
  at Layer.handle_error (node_modules/express/lib/router/layer.js:71:5)
  at trim_prefix (node_modules/express/lib/router/index.js:326:13)
  at node_modules/express/lib/router/index.js:286:9
  at Function.process_params (node_modules/express/lib/router/index.js:346:12)
  at next (node_modules/express/lib/router/index.js:280:10)
  at node_modules/express/lib/router/index.js:646:15
  at next (node_modules/express/lib/router/index.js:265:14)
  at next (node_modules/express/lib/router/route.js:136:14)
  at next (src/entry-points/sensors-api.js:65:7)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant