Skip to content

@sentry/nextjs not reporting issues i serverless functions #3643

Description

@ThePaulMcBride

Package + Version

  • @sentry/browser
  • @sentry/node
  • raven-js
  • raven-node(raven for node)
  • other:

Version:

6.5.1

Description

I've recently started using the @sentry/nextjs package for a Nextjs site. I've followed through with the installation guide with one exception. I'm using environment variables instead of the file generated by the wizard. On the client side it works great, the releases and bugs are being tracked, but I'm getting no reports from my serveless functions when they throw errors.

import{withSentry}from"@sentry/nextjs";consthandler=async(req,res)=>{thrownewError("API throw error test");res.status(200).json({name: "John Doe"});};exportdefaultwithSentry(handler);

This is the serverless function I am testing and nothing is showing up in my Sentry dashboard when it fails.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions