Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The DSN address contains // resulting in ErrorTranspotResult #1030

Closed
5 tasks done
gaoffan opened this issue Nov 5, 2020 · 2 comments
Closed
5 tasks done

The DSN address contains // resulting in ErrorTranspotResult #1030

gaoffan opened this issue Nov 5, 2020 · 2 comments

Comments

@gaoffan
Copy link

gaoffan commented Nov 5, 2020

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://[email protected]//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?

@maciejwalkowiak maciejwalkowiak mentioned this issue Nov 5, 2020
8 tasks
@maciejwalkowiak
Copy link
Contributor

Thanks for reporting, fix is in review #1032.

@bruno-garcia
Copy link
Member

Will go out on the next release.

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

No branches or pull requests

3 participants