Skip to content
This repository has been archived by the owner on Aug 30, 2023. It is now read-only.

Using DSNs without secret key #37

Open
martenlehmann opened this issue Apr 4, 2021 · 0 comments
Open

Using DSNs without secret key #37

martenlehmann opened this issue Apr 4, 2021 · 0 comments

Comments

@martenlehmann
Copy link

Environment

Sentry SaaS (sentry.io)
Sentry::Raven 1.13 in Perl 5.26.1 on Ubuntu 18.04.

Steps to Reproduce

Define a SENTRY_DSN environment variable or pass a sentry_dsn attribute without secret key (as defined at The Parts of the DSN) to

Sentry::Raven->new();

Expected Result

The initialization should happen silently.

Actual Result

The initialization fails with the error

unable to parse public and secret keys from: <SENTRY_DSN>

This originates from

die "unable to parse public and secret keys from: $sentry_dsn\n"

Even examples (e.g. at JavaScript configuration) show this type of usage. Since the other client libraries (like Python or JavaScript) can handle it, so should the Perl client. Checking for the colon in the userinfo shouldn't be enforced.

My current workaround: Adding : (ie. an empty secret key) before the @ in the DSN.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant