Skip to content

Nitro: Errors in tasks are not reported #25985

Open

Description

@MickL

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which SDK are you using?

@sentry/nitro

SDK Version

11.10.0

Framework Version

3.0.260903-beta

Link to Sentry event

No response

Reproduction Example/SDK Setup

No response

Steps to Reproduce

Add a task, errors are not reported to Sentry:

import { defineTask } from 'nitro/task';

export default defineTask({
  meta: {
    name: 'sentry-test',
    description: 'Test if Sentry error logging is working in Tasks, too',
  },
  run: async () => {
    throw new Error('Sentry error tracing is working!');
  },
});

Nitro config:

experimental: {
    tasks: true,
  },
  scheduledTasks: {
    '0 3 * * *': 'sentry-test', // Once daily at 03:00
  },

Expected Result

Errors should be reported

Actual Result

  • No error reported

Additional Context

No response

Priority

React with 👍 to help prioritize this issue. Please use comments to provide useful context, avoiding +1 or me too, to help us triage it.

Activity

  1. linear-code commented on Nov 1, 2026

    @linear-code
  2. MickL commented on Nov 1, 2026

    @MickL
    Author

    Possibly upstream issue of Nitro? @pi0

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions