getsentry / sentry-android-gradle-plugin

Gradle plugin for Sentry Android. Upload proguard, debug files, and more.

Home Page:https://docs.sentry.io/platforms/android/gradle/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Invalid org token (http status: 401)

rdeo-aziwell opened this issue · comments

Gradle Version

8.6

AGP Version

8.3.2

Code Minifier/Optimizer

R8

Version

4.4.1

Sentry SDK Version

7.8

Steps to Reproduce

Using this configuration:

sentry {
  debug = true
  authToken = "sntrys_MYTOKEN"
  org = "MYORG"
  projectName = "MYPROJ"
}

Expected Result

Obfuscation mappings get uploaded.

Actual Result

I get this error:

> Task :app:uploadSentryProguardMappingsRelease FAILED
API request failed

  caused by: sentry reported an error: Invalid org token (http status: 401)

The token was generated from https://org.sentry.io/settings/auth-tokens/new-token/

hey, I was able to reproduce the issue, it seems like we have to update our bundled sentry-cli version to support the EU data region. I'll roll out a fix shortly

hey, I was able to reproduce the issue, it seems like we have to update our bundled sentry-cli version to support the EU data region. I'll roll out a fix shortly

Yes, I tested with latest cli and it was working.

hi @rdeo-aziwell we've just shipped version 4.5.0, please give it a try and let us know if the issue is fixed. Thank you!

hi @rdeo-aziwell we've just shipped version 4.5.0, please give it a try and let us know if the issue is fixed. Thank you!

I can confirm it's working. Thanks!