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

Invalid HTTP code (500) when pushing defects to jira



We have set up integration between TestRail (Server version and Jira Server 7.5 according to:

For the most part, the integration works - we can link Jira tasks and defects with TestRail and see the test results inside Jira.
Defect Add Url is working fine as clicking on the Add link while updating test result will redirect to our Jira page.

However, the push functionality gives us an error:

[Jira_RESTException] Invalid HTTP code (500). Please verify the address of your JIRA installation in the configuration settings and that TestRail can reach your JIRA server.

File: /app01/html/testrail/app/plugins/defects/Jira_REST.php
Line: 1868
Status Code: 500
Host: testrail-test.energia.sise
Uri: /index.php?/defects/ajax_prepare_push (POST)

Browser: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/58.0.3029.81 Safari/537.36
PHP: 7.0.24
Server: Linux 4.1.12-103.3.8.el7uek.x86_64 #2 SMP Mon Aug 21 17:27:54 PDT 2017 x86_64

status_id: 5
custom_step_results: [{“content”:“Open Browser To Home Page”,“status_id”:“3”},{“content”:“Open Reference Number Login Form”,“status_id”:“3”},{“content”:“Enter ID Code | {ID CODE}","status_id":"3"},{"content":"Enter Reference Number | {REFERENCE NUMBER}”,“status_id”:“3”},{“content”:“Click Submit Button”,“status_id”:“3”},{“content”:“Login Should Have Succeeded”,“status_id”:“3”},{“content”:“Close Browser”,“status_id”:“3”}]
project_id: 1
test_ids: 28
_token: 0FzP4.ZiRxPM/Ffa/B1j

at Jira_REST_api->_throw_error (Jira_REST.php:1512)
at Jira_REST_api->_send_request (Jira_REST.php:1444)
at Jira_REST_api->_send_command (Jira_REST.php:1006)
at Jira_REST_api->get_projects (Jira_REST.php:650)
at Jira_REST_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)

Do you have any ideas what causes this problem and how to fix it?

Thanks in advance,