Skip to content

Server side errors are not monitored correctly in NextJS app directory #1114

Open
@mcAnastasiou

Description

@mcAnastasiou

What are the steps to reproduce this issue?

  1. Download current repository and run the nextJS app directory example
  2. Visit http://localhost:3000/data-fetching?fail=true

What happens?

In honeybadger you see the following error
Screenshot 2023-06-28 at 14 59 20

Screenshot 2023-06-28 at 14 59 49

and on server logs
Screenshot 2023-06-28 at 15 00 55

What were you expecting to happen?

The error should display the source code instead. Have tested the same behavior in Sentry and it works fine.

Any other comments?

It seems that before notify is not being executed in honeybadger.server.config.js. I added a console log and nothing is being displayed in the console. Probably this is the place that it handles the source map

Current behavior cannot be used in production, because the line code as you can see in the screenshot, is the one in production javascript file and not the source one. This makes it impossible to debug it when an error occurs

Metadata

Metadata

Assignees

Labels

nextjs@honeybadger-io/nextjs

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions