lazydroid / acra-reporter

Automatically exported from code.google.com/p/acra-reporter
0 stars 0 forks source link

Acrareporter fails to send report to appengine when customReportContent #7

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

Acra code annotations:

@ReportsCrashes(formKey = "", formUri 
="http://androidacrasetup.appspot.com/acrareport",
socketTimeout = 30000,
formUriBasicAuthLogin = "testwork",
formUriBasicAuthPassword = "testwork",
customReportContent = {ReportField.APP_VERSION_CODE, 
ReportField.APP_VERSION_NAME, ReportField.LOGCAT},
mode = ReportingInteractionMode.TOAST,
resToastText = R.string.crash_toast_text)

Full Log / Stacktrace after acra tries custom report :

04-18 11:51:02.238: D/ACRA(1141): #checkAndSendReports - finish
04-18 11:51:02.257: D/ACRA(1141): Sending request to 
http://androidacrasetup.appspot.com/acrareport
04-18 11:51:03.472: E/ACRA(1141): Failed to send crash report for 
1366285843000-approved.stacktrace
04-18 11:51:03.472: E/ACRA(1141): org.acra.sender.ReportSenderException: Error 
while sending report to Http Post Form.
04-18 11:51:03.472: E/ACRA(1141): at 
org.acra.sender.HttpPostSender.send(HttpPostSender.java:139)
04-18 11:51:03.472: E/ACRA(1141): at 
org.acra.SendWorker.sendCrashReport(SendWorker.java:178)
04-18 11:51:03.472: E/ACRA(1141): at 
org.acra.SendWorker.checkAndSendReports(SendWorker.java:141)
04-18 11:51:03.472: E/ACRA(1141): at org.acra.SendWorker.run(SendWorker.java:77)
04-18 11:51:03.472: E/ACRA(1141): Caused by: java.io.IOException: Host returned 
error code 403
04-18 11:51:03.472: E/ACRA(1141): at 
org.acra.util.HttpRequest.sendPost(HttpRequest.java:139)
04-18 11:51:03.472: E/ACRA(1141): at 
org.acra.sender.HttpPostSender.send(HttpPostSender.java:136)
04-18 11:51:03.472: E/ACRA(1141): ... 3 more
04-18 11:51:03.472: D/ACRA(1141): #checkAndSendReports - finish
04-18 11:51:05.175: D/ACRA(1141): Wait for Toast + worker ended. Kill 
Application ? true
04-18 11:51:05.183: E/ACRA(1141): com.example.androidacrasetup fatal error : 
unable to parse '' as integer
04-18 11:51:05.183: E/ACRA(1141): java.lang.NumberFormatException: unable to 
parse '' as integer
04-18 11:51:05.183: E/ACRA(1141): at 
java.lang.Integer.parseInt(Integer.java:362)
04-18 11:51:05.183: E/ACRA(1141): at 
java.lang.Integer.parseInt(Integer.java:332)
04-18 11:51:05.183: E/ACRA(1141): at 
com.example.androidacrasetup.MainActivity$1.onClick(MainActivity.java:32)
04-18 11:51:05.183: E/ACRA(1141): at 
android.view.View.performClick(View.java:2485)
04-18 11:51:05.183: E/ACRA(1141): at 
android.view.View$PerformClick.run(View.java:9080)
04-18 11:51:05.183: E/ACRA(1141): at 
android.os.Handler.handleCallback(Handler.java:587)
04-18 11:51:05.183: E/ACRA(1141): at 
android.os.Handler.dispatchMessage(Handler.java:92)
04-18 11:51:05.183: E/ACRA(1141): at android.os.Looper.loop(Looper.java:123)
04-18 11:51:05.183: E/ACRA(1141): at 
android.app.ActivityThread.main(ActivityThread.java:3687)
04-18 11:51:05.183: E/ACRA(1141): at 
java.lang.reflect.Method.invokeNative(Native Method)
04-18 11:51:05.183: E/ACRA(1141): at 
java.lang.reflect.Method.invoke(Method.java:507)
04-18 11:51:05.183: E/ACRA(1141): at 
com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:842)
04-18 11:51:05.183: E/ACRA(1141): at 
com.android.internal.os.ZygoteInit.main(ZygoteInit.java:600)
04-18 11:51:05.183: E/ACRA(1141): at dalvik.system.NativeStart.main(Native 
Method)
04-18 11:51:05.183: I/Process(1141): Sending signal. PID: 1141 SIG: 9

What is the expected output? What do you see instead?
The report must be posted to the appengine published acrareporter app

What version of the product are you using? On what operating system?

Please provide any additional information below.

Testing on a Samsung Galaxy Tab , and no it is not behind a proxy.

Its is connected via a Wifi.

This does not work only for the "customReportContent" tag

Original issue reported on code.google.com by testwork...@gmail.com on 18 Apr 2013 at 8:59

GoogleCodeExporter commented 9 years ago
You are missing some important fields, you must have PACKAGE_NAME for a start...

Look in the log for your app-engine instance, it will show what you are missing 
in order..

You should have
PACKAGE_NAME
ANDROID_VERSION
APP_VERSION_NAME
APP_VERSION_CODE
REPORT_ID
USER_CRASH_DATE
STACK_TRACE

Original comment by mat...@winters.org.nz on 28 Apr 2013 at 9:47