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

Debug symbol upload for Android fails with Gradle (works with CLI, and on desktop (Windows) build) #666

Closed
bruno-garcia opened this issue Oct 27, 2024 · 4 comments
Labels
Bug Something isn't working Platform: Android

Comments

@bruno-garcia
Copy link
Member

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.

Image

Image
Image

Task failed uploadSentryProguardWMappingsRelease

@bruno-garcia bruno-garcia added Bug Something isn't working Platform: Android labels Oct 27, 2024
@bruno-garcia
Copy link
Member Author

The error message is "Invalid org token so 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?)

@Rostislav98
Copy link

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.

@getsantry getsantry bot moved this to Waiting for: Product Owner in GitHub Issues with 👀 3 Oct 27, 2024
@tustanivsky
Copy link
Collaborator

@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 (getsentry/sentry-android-gradle-plugin#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.

@tustanivsky
Copy link
Collaborator

Updating plugin resolved the symbol upload issue.

@github-project-automation github-project-automation bot moved this to Done in GDX Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working Platform: Android
Projects
Status: Done
Archived in project
Development

No branches or pull requests

3 participants