Join 34,000+ subscribers and receive articles from our blog about software quality, testing, QA and security.
 

Invalid HTTP code (404). Please check your user/password and that the API is enabled in Redmine


#1

I can´t connect TestRail, installed on a server, to Redmine API:

The user i’m using is:

[connection]
address=http://172.25.211.126/
user=testrail
password=testrail1234

The above user can login in redmine.
At redmine, the:

  • “Enable REST web service” is active
  • “Enable JSONp suport” is active

the TestRail log refers:

RedmineException] Invalid HTTP code (404). Please check your user/password and that the API is enabled in Redmine.

Details:
File: C:\inetpub\wwwroot\testrail\app\plugins\defects\Redmine.php
Line: 505
Status Code: 500
Host: localhost
Uri: /testrail/index.php?/defects/ajax_prepare_push (POST)

Browser: Mozilla/5.0 (Windows NT 6.3; WOW64; Trident/7.0; rv:11.0) like Gecko
PHP: 7.0.27
Server: Windows NT 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64

status_id: 5
assignedto:
comment:
version:
elapsed:
defects:
attachments:
project_id: 1
test_ids: 1
_token: 2WwOQLbA5Ji3.W0cLEKA
_version: 5.4.1.3669

Trace:
at Redmine_api->_throw_error (Redmine.php:560)
at Redmine_api->_send_request (Redmine.php:517)
at Redmine_api->_send_command (Redmine.php:593)
at Redmine_api->get_trackers (Redmine.php:261)
at Redmine_defect_plugin->_get_trackers (Redmine.php:334)
at Redmine_defect_plugin->prepare_field (defects.php:682)
at Defects_controller->_prepare_form (defects.php:731)
at Defects_controller->ajax_prepare_push (controller.php:257)
at Controller->_invoke_web_call (controller.php:168)
at Controller->_invoke_web (controller.php:120)
at Controller->_invoke (gizmo.php:107)
at require_once (index.php:106)

I’m completely stuck with this, how to resolve this?