Skip to content

[Replay] NextJS tunnel fails to passthrough Replay payloads #6539

@sdacunha

Description

@sdacunha

Is there an existing issue for this?

How do you use Sentry?

Sentry Saas (sentry.io)

Which package are you using?

@sentry/nextjs

SDK Version

7.26.0

Framework Version

Next 12.2.5

Link to Sentry event

No response

Steps to Reproduce

  1. Setup Sentry Replay, for example:
    sentry.client.config.js
new Replay({
     stickySession: true,
 }),

as well as tunneling, for example:

next.config.js

sentry: {
    widenClientFileUpload: true,
    tunnelRoute: '/monitoring-tunnel',
 },

via an API route or via the tunnelRoute option.
4. Load application

Expected Result

The tunnel is able to passthrough Replay payloads

Actual Result

Sentry reports errors (401 due to missing dsn in envelope) for Replay payloads passed through the tunnel {"detail":"bad envelope authentication header","causes":["missing field `dsn` at line 1 column 157"]}

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