Debian/Redmine 2.5.2 API ERROR - 404 not found
Added by Leonardo Moura over 9 years ago
Hey, I need help urgent!
We upgrade our debian server and consequently redmine from 1.4.4 to 2.5.2.
Our actual problem is that out API post service is not working. We get a 404 not found page error.
Here you are the parameters and how we are doing the integration:
Server configuration
Debian: 8.0 (Jessie) Redmine: 3.0~20140825-5 (2.5.2-devel) Apache : 2.4.10-10 PHP5: 5.6.7+dfsg-1 Ruby: 1:2.1.5 Bundler: 1.7.4-1 Rails: 2:4.1.8-1
Integration Service
<?php
require_once ('ActiveResource.php');
class Issue extends ActiveResource {
var $site = 'http://USER:PASS@redmine.OURSERVER.com.br/';
var $request_format = 'xml'; // REQUIRED!
}
$issue = new Issue (array ('subject' => 'XML REST API', 'project_id' => '4'));
$retorno = $issue->save();
print_r($retorno);
?>
*Return:*
*[response_code] => 404 [response_headers] => HTTP/1.1 404 Not Found*
Issue Object ( [site] => http://XXXXXX [request_format] => xml [extra_params] => [user] => [password] => [element_name] => issue [element_name_plural] => issues [_data] => Array ( [subject] => XML REST API [project_id] => 4 ) [error] => Empty reply [errno] => [request_body] => XML REST API 4 [request_headers] => Array ( [0] => Expect: [1] => Content-Type: text/xml [2] => Length: 113 ) [request_uri] => http://XXXXXXX/issues.xml [request_method] => POST [response_code] => 404 [response_headers] => HTTP/1.1 404 Not Found Date: Mon, 01 Jun 2015 14:34:17
</php>