Platform:
IDE:
Build system:
Android Gradle Plugin:
Sentry Android Gradle Plugin:
Proguard/R8:
Platform installed with:
The version of the SDK:
5.1.1
I have the following issue:
Another library included a copy of com.google.gson.Gson class which caused sentry-java to silently fail to deliver the event to sentry. When we enabled the logs, we observed the following:
DEBUG: Capturing event: 138d4d2eeb2845acaf8829723001ba8f
INFO: Session is null on scope.withSession
ERROR: Request failed, API returned 400
ERROR: {"detail":"empty envelope"}
Using a debugger, we were able to see that NoSuchMethodError was thrown when calling Gson.excluder() method from UnknownPropertiesTypeAdapterFactory.
Steps to reproduce:
Actual result:
- The error was not informative and we had to use a debugger to find the root cause
Expected result:
- informative ERROR should have been logged to the Sentry ILogger.
Platform:
IDE:
Build system:
Android Gradle Plugin:
Sentry Android Gradle Plugin:
Proguard/R8:
Platform installed with:
The version of the SDK:
5.1.1
I have the following issue:
Another library included a copy of
com.google.gson.Gsonclass which caused sentry-java to silently fail to deliver the event to sentry. When we enabled the logs, we observed the following:Using a debugger, we were able to see that NoSuchMethodError was thrown when calling Gson.excluder() method from UnknownPropertiesTypeAdapterFactory.
Steps to reproduce:
Actual result:
Expected result: