frapi/frapi — Issue #112: Error code 400 when testing a action
Author: dinhienhy
Created: 2012-03-10 02:01:47+00:00
State: open

Hi all,

I have installed FRAPI on Win 7 with apache web server.
When I try to test a action, I have recieved bellow result:

Response (Code 400):
Date: Sat, 10 Mar 2012 01:51:40 GMT
Server: Apache/2.2.17 (Win32) mod_ssl/2.2.17
OpenSSL/0.9.8o PHP/5.3.4 mod_perl/2.0.4
Perl/v5.10.1
X-powered-by: PHP/5.3.5
Access-control-allow-origin: *
Access-control-allow-headers: *
Access-control-allow-credentials: true
Access-control-allow-methods: POST,GET,PUT,DELETE,HEAD
Access-control-max-age: 604800
Content-length: 503
Connection: close
Content-type: application/xml; charset=utf-8

Content Body:
{"errors":[{"message":"Argument 1 passed to Frapi_Action::setAcceptParams() must be an array, boolean given, called in C:\\frapi\\src\\frapi\\library\\Frapi\\Controller\\Api.php on line 245 and defined (Error Number: 4096), (File: C:\\frapi\\src\\frapi\\library\\Frapi\\Action.php at line 160)","name":"PHP Recoverable error","at":""}]}

This action has no parameter.
Let me know if I have any mistake?

Thanks,
Hien Phan