PUT and PHP

35 views
Skip to first unread message

luis.t...@ucsp.edu.pe

unread,
May 10, 2014, 5:28:08 PM5/10/14
to ma...@googlegroups.com
I tried to use the httpMethod PUT with no luck, I got the following error on the log Invalid report request data ! Array (), but everything worked fine with POST. Also I wasn't able to use PHP, I had to use htaccess. I don't if there is a fix for this issues or if I can help somehow. Thanks in advance and great job by the way.

Medialoha

unread,
May 11, 2014, 3:31:31 AM5/11/14
to ma...@googlegroups.com
Hello,

Is mabl hosted in a your own Web server or in a provider ?

For PHP authentication check if mod_cgi is enabled. Because it can't work with this extension.

For the PUT method, the problem seems to be the ACRA configuration. The data received by mabl is empty. Can you give us your ACRA config (hide private info:url, password...) ?

Regards.

luis.t...@ucsp.edu.pe

unread,
May 11, 2014, 1:42:55 PM5/11/14
to ma...@googlegroups.com
It's in a provider, gonna check that later, thanks.

The configuration is the following:

@ReportsCrashes(formKey = "",
formUri = "",
formUriBasicAuthLogin = "",
formUriBasicAuthPassword = "",
httpMethod = org.acra.sender.HttpSender.Method.PUT,
reportType = org.acra.sender.HttpSender.Type.JSON,
mode = ReportingInteractionMode.TOAST,
resToastText = R.string.crash_toast_text)

It works with POST.

Best regards.

luis.t...@ucsp.edu.pe

unread,
May 11, 2014, 4:37:04 PM5/11/14
to ma...@googlegroups.com
Another question, the only way to delete an application is directly on the database? Thanks in advance.

Medialoha

unread,
May 13, 2014, 3:05:29 AM5/13/14
to
Your configuration looks good. You can check the ACRA log for any html error code when the report is sent.

And yes, for the moment you need to delete the application from the database. This feature would be done in next release of mabl.

For POST or PUT methods, look at this page: 

PUT is a better choice, but POST do the same...
Reply all
Reply to author
Forward
0 new messages