Closed bruno-garcia closed 2 days ago
The error message is "Invalid org tokenso I suspect gradle is picking up a token from somewhere like env var (
SENTRY_AUTH_TOKEN) or
sentry.properties`.
The error message comes from here: https://github.com/getsentry/sentry-cli/blob/6d0729dafaf0ce928fcb591f4c701a051c98ddf4/src/commands/login.rs#L76-L91
So does this mean Sentry rejected the token or the format of the token is invalid? (Or could be either?)
I have "sentry.properties" in my project folder, but they were generated by Sentry Unreal pugin, when I set up token, project name, organization name in plugin engine settings. When I changed vales its regenerated in folder. The values the same like in plugin engine settings.
After my builds on Android fails, i used senty CLI for uploading android debug symbols. And they saved my valid token somewhere in PC, when i first log in. But, after that, I tryied upload adnroid debug symbols automaticaly. and got error again. I do not see SENTRY_AUTH_TOKEN in enviroment vairables on my PC.
@Rostislav98 Which UE plugin version do you have? How do you use Sentry - SaaS / self-hosted?
It looks similar to #502.
The Sentry Android Gradle plugin which's used in Unreal for symbol upload also had this issue (https://github.com/getsentry/sentry-android-gradle-plugin/issues/694) so we've upgraded it recently to get a corresponding fix (#633) and make things work out of the box. It should be available starting from 0.20.0
.
Updating plugin resolved the symbol upload issue.
From Discord
OS: Windows Build: Android build with Gradle
Sentry can`t automatically upload debug symbols for Android, but it automatically uploads symbols for Windows builds. The Android building process returns an error: Invalid org token (HTTP status 401). However, I can manually upload debug symbols for Android using the console sentry CLI. I used the same token for automatic Windows debug symbol upload and for manually uploading debug symbols for Android using the CLI. I have added screenshots with errors, corrected upload debug symbols for Windows, and manually uploaded symbols for Android.
Task failed
uploadSentryProguardWMappingsRelease