This repository was archived by the owner on Aug 30, 2023. It is now read-only.

Description
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
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.