sentry-android-gradle-plugin icon indicating copy to clipboard operation
sentry-android-gradle-plugin copied to clipboard

Gradle plugin expects DSN for build

Open jasonab opened this issue 1 year ago • 4 comments

Integration

sentry

Java Version

21

Version

4.5.1

Steps to Reproduce

gradle clean build

Expected Result

No error message from Sentry

Actual Result

error: Auth token is required for this request. Please run sentry-cli login and try again!

Add --log-level=[info|debug] or export SENTRY_LOG_LEVEL=[info|debug] to see more output. Please attach the full debug log to all bug reports.

jasonab avatar May 02 '24 00:05 jasonab

Note that our DSN is stored in AWS param store, and is therefore loaded dynamically at runtime. I expect this would also be an issue if I had the DSN in a Spring properties file.

jasonab avatar May 02 '24 00:05 jasonab

@jasonab thanks for reaching out! Just for clarification, could you answer the following questions:

  • Are you building an Android app? And if so, do you apply our io.sentry.android.gradle plugin? And which version?
  • Does the error message cause the build to fail?

markushi avatar May 03 '24 10:05 markushi

This is a Spring application, not Android - I was using v4.5.1. The build did not fail, but was noisy.

jasonab avatar May 03 '24 16:05 jasonab

@jasonab, alright thanks for getting back! We have identified the issue and are working on a fix now!

markushi avatar May 06 '24 09:05 markushi

I believe this should be tackled by https://github.com/getsentry/sentry-android-gradle-plugin/pull/708 now

romtsn avatar May 16 '24 08:05 romtsn

hey @jasonab the issue has been addressed in the version 4.6.0, which just has been published. Please give it a try and let us know. Thank you!

romtsn avatar May 16 '24 09:05 romtsn

yes, I can confirm the problem is fixed - thanks!

jasonab avatar May 16 '24 17:05 jasonab