Skip to content

fix(cli): Strip trailing slashes from positional DSN in event send - #2934

Open
sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-event-send-trailing-slash-dsn
Open

sentry[bot] wants to merge 1 commit into
mainfrom
seer/fix-event-send-trailing-slash-dsn

Conversation

@sentry

@sentry sentry Bot commented Dec 5, 2026

Copy link
Copy Markdown
Contributor

When passing a custom DSN with a trailing slash to sentry event send, @sentry/core's makeDsn parser fails because splitting on / leaves an empty string as the last path segment (representing project ID), throwing a ValidationError: Invalid DSN. This strips trailing slashes from positional DSN targets in resolveEventSendDsn.

Fixes CLI-36G

@sentry <feedback>: Autofix iterates on these changes
@sentry stop iterating: Autofix stops iterating on this run

This PR was automatically generated by Sentry at no cost. You can adjust this setting at any time.

@vercel

vercel Bot commented Dec 5, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
cli Ready Ready Preview Dec 5, 2026 10:41am UTC
1 Skipped Deployment
Project Deployment Actions Updated
sentry-local Skipped Skipped Dec 5, 2026 10:41am UTC

Request Review

This branch was successfully deployed

1 active and 1 inactive deployments
Preview – cli — e2d96bb3 Deployed Dec 5, 2026 by vercel[bot]
Preview – sentry-local — e2d96bb3 Deployed Dec 5, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

risk: low PR risk score: low

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants