vaibhavpandeyvpz / acraviz

Open-source, Silex/Doctrine powered backend for visualizing crash reports from ACRA library for Android

Home Page:http://vaibhavpandeyvpz.github.io/acraviz

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Accept new reports via HTTP PUT (instead of POST)

chrisblech opened this issue · comments

The last version of my app sends ACRA reports via HTTP Request Method: PUT (httpMethod = org.acra.sender.HttpSender.Method.PUT), as this was recommended by Acralyzer.

Now I wanted to switch to ACRAViz (much better performance!) and set up an proxy that hands all reports to the new endpoint - but ACRAViz' /api router doesn't know what to do with this method.

see: https://github.com/ACRA/acra/wiki/Report-Destinations#postput-request

Since ACRA v4.5.0, you can choose to send reports via an HTTP PUT request rather than an HTTP POST request.
When using a PUT request, ACRA adds automatically the Report ID at the end of the formUri.

PS: as a quick'n'dirty workaround, you could hack your nginx proxy settings... ;-)