Closed paour closed 11 years ago
Removing the customReportContent annotation fixed it. Probably worth documenting which content is mandatory for Acralyzer.
This is a duplicate of #29.
I have the exact same problem but, the diference is that I dont have the customReportContent annotation. Any ideias what it might be?
Perhaps you can start from the default configuration and gradually update it to your configuration until you identify the issue.
Or if you're hosting your own server you may be getting a helpful error message (I couldn't do that since I was using a third party server). Le 4 mai 2013 18:22, "TiagoMota" notifications@github.com a écrit :
I have the exact same problem but, the diference is that I dont have the customReportContent annotation. Any ideias what it might be?
— Reply to this email directly or view it on GitHubhttps://github.com/ACRA/acralyzer/issues/33#issuecomment-17436892 .
Im hosting at cloudant, and hte problem is the ID that is lost somewhere.
I have these annotations by the way:
formUri = "https://questtrip.cloudant.com/acra-questtrip_reports/_design/acra-storage/_update/report", reportType = org.acra.sender.HttpSender.Type.JSON, httpMethod = org.acra.sender.HttpSender.Method.PUT, formUriBasicAuthLogin="login", formUriBasicAuthPassword="pass", mode = ReportingInteractionMode.TOAST, resToastText = R.string.crash_toast_text, formKey = ""
Here is the logcat:
05-04 17:57:51.849: I/ACRA(7504): Sending file 1367682434000-approved.stacktrace 05-04 17:57:51.879: D/ACRA(7504): Connect to https://questtrip.cloudant.com/acra-questtrip_reports/_design/acra-storage/_update/report 05-04 17:57:51.899: D/dalvikvm(7504): GC_FOR_ALLOC freed 945K, 25% free 6920K/9140K, paused 21ms, total 22ms 05-04 17:57:51.919: D/ACRA(7504): Sending request to https://questtrip.cloudant.com/acra-questtrip_reports/_design/acra-storage/_update/report/null 05-04 17:57:52.209: E/ACRA(7504): Failed to send crash report for 1367682434000-approved.stacktrace 05-04 17:57:52.209: E/ACRA(7504): org.acra.sender.ReportSenderException: Error while sending JSON report via Http PUT 05-04 17:57:52.209: E/ACRA(7504): at org.acra.sender.HttpSender.send(HttpSender.java:228) 05-04 17:57:52.209: E/ACRA(7504): at org.acra.SendWorker.sendCrashReport(SendWorker.java:179) 05-04 17:57:52.209: E/ACRA(7504): at org.acra.SendWorker.checkAndSendReports(SendWorker.java:141) 05-04 17:57:52.209: E/ACRA(7504): at org.acra.SendWorker.run(SendWorker.java:77) 05-04 17:57:52.209: E/ACRA(7504): Caused by: java.io.IOException: Host returned error code 400 05-04 17:57:52.209: E/ACRA(7504): at org.acra.util.HttpRequest.send(HttpRequest.java:164) 05-04 17:57:52.209: E/ACRA(7504): at org.acra.sender.HttpSender.send(HttpSender.java:225) 05-04 17:57:52.209: E/ACRA(7504): ... 3 more 05-04 17:57:52.209: D/ACRA(7504): #checkAndSendReports - finish 05-04 17:57:53.510: D/ACRA(7504): Wait for Toast + worker ended. Kill Application ? true
I've got same problem. I would appreciate if someone could help.
My ReportsCrashes annotation:
reportType = HttpSender.Type.JSON,
httpMethod = HttpSender.Method.PUT,
formKey = "",
formUri = "http://xxx.yyy.zzz.vvv:aaa/acra-testdb/_design/acra-storage/_update/report",
formUriBasicAuthLogin="login",
formUriBasicAuthPassword="password",
mode = ReportingInteractionMode.TOAST,
resToastText = R.string.app_name_activity
After connection established I receive log: Sending request to http://xxx.yyy.zzz.vvv:aaa/acra-testdb/_design/acra-storage/_update/report/null
Add REPORT_ID to fields to be sent and clean app data in Settings. Than solved for me.
@hamen thanks a lot. It's (clean app data) worked for me.
@hamen @younix70 which Settings were you talking about please ? (I know that's a long time ago)
I mean cleaning application storage data from Settings worked for me. :)
@younix70 Thank you. Yeah I guessed it after some thinking ^^. Worked for me too.
I have the same error, but i don't know know which settings you guys talking about. Do you mean my android device system settings?
@IbnB app storage cleaning from application details screen on your android device.
@mhicauber thanks, It worked-:)
I've set up an instance on CloudAnt (great step-by-step instructions!), but I'm getting an error when ACRA tries to PUT the report:
Reading other issue descriptions here it looks like the problem is that ACRA is somehow losing the report ID when it tries to post it (the URL ends in /report/null when it should be /report/id).
I'm using ACRA 4.5.0RC2 on Android 4.2.2 (CM10.1), configured with the following annotations. I've tried setting the preference for silent reports and unsetting it.