Skip to content

The DSN address contains // resulting in ErrorTranspotResult #1030

@gaoffan

Description

@gaoffan

Platform:

  • Java -> 1.8
  • Spring -> Spring Boot 2.3

IDE:

  • IntelliJ -> 2020.2

Build system:

  • Maven

Platform installed with:

  • Maven Central

The version of the SDK:
3.1.0


I use self-hosted Sentry and set the ROOT URL to http://www.example.com/ , then the website suggest me to configure Sentry SDK as

Sentry.init(options -> {
  options.setDsn("http://xxx@www.example.com//2");
});

But I can't receive any error info at Sentry, so I debug sdk and find ErrorTranspotResult(500) in
flush:239, AsyncConnection$EnvelopeSender (io.sentry.transport)

The problem is solved after I deleted the last / in the DSN address.

So can normalize the DSN address before it parsed?

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