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

Using DSNs without secret key #37

@martenlehmann

Description

@martenlehmann

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.

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