ACRA / acralyzer

Open source backend for ACRA reports.
GNU General Public License v3.0
488 stars 90 forks source link

Unable to Send Crash Report to Cloudant: Failed to send crash report for... #111

Closed activelogic closed 9 years ago

activelogic commented 9 years ago

I recently switched from iriscouch to cloudant. I had my app working perfectly fine with iriscouch, but I can't seem to get it to successfully send crash reports to Cloudant.

I followed the instructions on the wiki and created both databases with the proper naming convention (acralyzer / acra-fireteamgo). I also created an API Key and gave Writer access to that user on the acra-fireteamgo database.

The configuration in my App is as follows (Note: updated from PUSH to POST):

formKey = "",
formUri = "https://fireteamgo.cloudant.com/acra-fireteamgo/_design/acra-storage/_update/report",
reportType = org.acra.sender.HttpSender.Type.JSON,
httpMethod = org.acra.sender.HttpSender.Method.POST,
formUriBasicAuthLogin="[cloudant_api_key]",
formUriBasicAuthPassword="[cloudant_api_password]",
mode = ReportingInteractionMode.TOAST,
resToastText = R.string.error_crash_report

When creating a crash to test the sending of reports I get the following in Logcat:

17:07:54.651  16680-16699/com.fireteamgo.android D/ACRA﹕ Sending request to      https://fireteamgo.cloudant.com/acra-fireteamgo/_design/acra-storage/_update/report
05-06 17:07:54.651  16680-16699/com.fireteamgo.android E/ACRA﹕ Failed to send crash report for 1430945262000-approved.stacktrace
05-06 17:07:54.651  16680-16699/com.fireteamgo.android I/ACRA﹕ Sending file 1430945412000-approved.stacktrace

Any ideas on what may be causing this?

activelogic commented 9 years ago

Seems to have sorted itself out.