acra-go icon indicating copy to clipboard operation
acra-go copied to clipboard

"500 Internal Server Error (key required)" when sending report

Open guilhem-lk opened this issue 7 years ago • 5 comments

I receive an error when I send a report to the backend : "500 Internal Server Error (key required)"

It seems that acra-go can't extract the REPORT_ID from the report.

Here is my report: test-report.txt

I tested with one of your report and it's working fine. The only diff I saw with mine is that your fields are sorted in alphabetical order, not mine...

guilhem-lk avatar Apr 28 '17 08:04 guilhem-lk

Are you using org.acra.sender.HttpSender.Type.JSON or plain form? It seems there are some issues with form library.

gen2brain avatar Apr 28 '17 10:04 gen2brain

Yes, I send it as JSON in a POST method. The test-report.txt file is sent in the request body.

I also tested it directly with a curl command on the server: curl -X POST http://localhost:55000/send -d @test-report.txt -H"Content-Type: application/json"

Same result.

Thank you for your help.

guilhem-lk avatar Apr 28 '17 11:04 guilhem-lk

FYI, I tested it on Debian with Go v1.0.2

I also checked on Windows with latest version (1.8.1) and I'm having the same issue.

guilhem-lk avatar May 04 '17 15:05 guilhem-lk

I didn't had time to check, I guess report.go needs to be compared with actual output. I only tested with example output from acra project, not from actual output.

gen2brain avatar May 04 '17 15:05 gen2brain

I implemented a workaround in 829590616b75a915619eb3ac3f7b14a143387a15 .

gen2brain avatar Sep 15 '17 11:09 gen2brain