Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

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

Open
guilhem-lk opened this issue Apr 28, 2017 · 5 comments
Open

Comments

@guilhem-lk
Copy link

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...

@gen2brain
Copy link
Owner

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

@guilhem-lk
Copy link
Author

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
Copy link
Author

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.

@gen2brain
Copy link
Owner

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
Copy link
Owner

gen2brain commented Sep 15, 2017

I implemented a workaround in 8295906 .

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants