question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

HttpSender not sending on version 5.5.0

See original GitHub issue

I’m trying to use acra-http:5.5.0 to send data to acrarium. just to test it I have ACRA.getErrorReporter().handleSilentException(new RuntimeException("test exception")); placed in my code at the end of an AsyncTask. Here’s the debug log from ACRA after the handleSilentException runs:

logcat

D/ACRA: Calling collector org.acra.collector.LogCatCollector D/ACRA: Calling collector org.acra.collector.StacktraceCollector D/ACRA: Calling collector org.acra.collector.DropBoxCollector D/ACRA: Collector org.acra.collector.DropBoxCollector completed D/ACRA: Retrieving logcat output (buffer:default)… D/ACRA: Collector org.acra.collector.StacktraceCollector completed D/ACRA: Calling collector org.acra.collector.DeviceIdCollector Collector org.acra.collector.DeviceIdCollector completed D/ACRA: Calling collector org.acra.collector.DeviceFeaturesCollector D/ACRA: Calling collector org.acra.collector.ConfigurationCollector D/ACRA: Collector org.acra.collector.DeviceFeaturesCollector completed D/ACRA: Calling collector org.acra.collector.MemoryInfoCollector D/ACRA: Calling collector org.acra.collector.PackageManagerCollector D/ACRA: Collector org.acra.collector.ConfigurationCollector completed D/ACRA: Calling collector org.acra.collector.CustomDataCollector D/ACRA: Collector org.acra.collector.CustomDataCollector completed D/ACRA: Collector org.acra.collector.PackageManagerCollector completed D/ACRA: Calling collector org.acra.collector.DisplayManagerCollector D/ACRA: Calling collector org.acra.collector.SimpleValuesCollector D/ACRA: Calling collector org.acra.collector.TimeCollector D/ACRA: Calling collector org.acra.collector.SharedPreferencesCollector D/ACRA: Calling collector org.acra.collector.ReflectionCollector D/ACRA: Collector org.acra.collector.SharedPreferencesCollector completed D/ACRA: Collector org.acra.collector.TimeCollector completed D/ACRA: Collector org.acra.collector.MemoryInfoCollector completed Calling collector org.acra.collector.MediaCodecListCollector D/ACRA: Collector org.acra.collector.MediaCodecListCollector completed D/ACRA: Calling collector org.acra.collector.ThreadCollector Collector org.acra.collector.ThreadCollector completed D/ACRA: Calling collector org.acra.collector.SettingsCollector D/ACRA: Collector org.acra.collector.SettingsCollector completed D/ACRA: Collector org.acra.collector.SimpleValuesCollector completed D/ACRA: Calling collector org.acra.collector.LogFileCollector Collector org.acra.collector.LogFileCollector completed D/ACRA: Collector org.acra.collector.LogCatCollector completed D/ACRA: Collector org.acra.collector.DisplayManagerCollector completed D/ACRA: Collector org.acra.collector.ReflectionCollector completed D/ACRA: Writing crash report file /data/user/0/com.bobitek.financialportfolio/app_ACRA-unapproved/2020-02-17T15:25:22.186-05:00-IS_SILENT.stacktrace D/ACRA: ServicePluginLoader loading services from ServiceLoader : java.util.ServiceLoader[org.acra.interaction.ReportInteraction] D/ACRA: Found services ([]) for class : interface org.acra.interaction.ReportInteraction Mark 2020-02-17T15:25:22.186-05:00-IS_SILENT.stacktrace as approved. Schedule report sending D/ACRA: config#reportSenderFactoryClasses : ImmutableList{[]} Using PluginLoader to find ReportSender factories ServicePluginLoader loading services from ServiceLoader : java.util.ServiceLoader[org.acra.sender.ReportSenderFactory] D/ACRA: Checking plugin Configurations : ImmutableList{[org.acra.config.HttpSenderConfiguration@430612d]} for class : class org.acra.config.HttpSenderConfiguration D/ACRA: Checking plugin Configuration : org.acra.config.HttpSenderConfiguration@430612d against plugin class : class org.acra.config.HttpSenderConfiguration Ignoring disabled ReportSenderFactory of type HttpSenderFactory Found services ([]) for class : interface org.acra.sender.ReportSenderFactory reportSenderFactories : [] config#reportSenderFactoryClasses : ImmutableList{[]} Using PluginLoader to find ReportSender factories D/ACRA: ServicePluginLoader loading services from ServiceLoader : java.util.ServiceLoader[org.acra.sender.ReportSenderFactory] D/ACRA: Checking plugin Configurations : ImmutableList{[org.acra.config.HttpSenderConfiguration@430612d]} for class : class org.acra.config.HttpSenderConfiguration Checking plugin Configuration : org.acra.config.HttpSenderConfiguration@430612d against plugin class : class org.acra.config.HttpSenderConfiguration Ignoring disabled ReportSenderFactory of type HttpSenderFactory D/ACRA: Found services ([]) for class : interface org.acra.sender.ReportSenderFactory reportSenderFactories : [] Wait for Interactions + worker ended. Kill Application ? false

my configuration looks like this: @AcraCore(buildConfigClass = BuildConfig.class, reportFormat = StringFormat.JSON) @AcraHttpSender(uri = "http://192.168.0.12:8082/report", basicAuthLogin = "5N4kJHQTT6yELZ7V", basicAuthPassword = "9WMzdRcrtVOBG8Lc", httpMethod = HttpSender.Method.POST)

I’m have port 8080 forwarded to 8082 because I’m running the backend on a vm. I can reach the UI for acrarium outside of the vm, so I don’t think that’s the issue. the Profiler in android studio isn’t showing anything in the network tab. I’m testing this on an android vm from Android Studio running the android 9.0 api 28 x86 image. I have also tried an api level 28 image as well.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
mbobic93commented, Feb 18, 2020

So I found 2 issues with my setup. The first is that I did not have ACRA.init(application) in the attachBaseContext() function. I tried it on my MainActivity but since it extends AppCompatActivity, attachBaseContext() would throw an NPE on getApplication(). So I made a class that extends Application and referenced it in the manifest file.

The second issue is that it could not find my acrarium endpoint. apparently since it was running on a ubuntu vm on virtualbox on the same machine as Android Studio, I needed to change the ip to 10.0.2.2.

Thank you for all your help

0reactions
mbobic93commented, Feb 18, 2020

Thank you. I’ll take a look and see if there is something wrong with my configuration

Read more comments on GitHub >

github_iconTop Results From Across the Web

Newest 'acra' Questions - Stack Overflow
This is my gradle: implementation "ch.acra:acra-mail:5.5.0" ... ACRA is not sending via HTTPSender ... ACRA does not send report crash using HttpSender.
Read more >
Limit concurrent backups in VDP 5.8 - VMware Communities
I thought about the concurrent backups, but the VDP version does not allow to change the backup job hour. VDP version: 5.1. vCenter...
Read more >
TIBCO Silver?? Fabric 5.6 Release Notes
BUT NOT LIMITED TO ANY RELEASE NOTES AND "READ ME" FILES. TIBCO products may include some or all of the following: Software developed...
Read more >
chukwa/CHANGES.txt at master · apache/chukwa - GitHub
Added retry logic for SolrWriter and update to Solr 5.5.0 API (Eric Yang). CHUKWA-797. ... Checkpoint includes last byte Acked, not sent. (asrabkin)....
Read more >
[Dev] [EI] Issue on send an email with the attachment.
If I use payload to define email body, I could not able to send the ... DEBUG - wire HTTP-Sender I/O > dispatcher-2...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found