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

Push JIRA issue from Test Rail


#1

Hi,

I am trying to push a bug from TestRail into JIRA and I get the following response after filling the bug reporting form.

I can add the bug in JIRA manually and then link it in TestRail, nonetheless, I cannot push a bug from TestRail into JIRA.

Let me attach an screenshot of the error.

The error from JIRA is as follows:
Plugin “Jira_REST” returned an error: Empty reply from server

Is it a problem from TestRail or a problem from JIRA?


#2

Hello,

We’ve already answered your separate email:

Hello Alex,

Thanks for your email and for your interest in TestRail! We have many teams switching to TestRail every week and we would be very happy to help your team try and adopt TestRail as well.

Regarding your question: the problem is that your JIRA instance is returning an invalid response. We haven’t seen this specific issue before and we have a large number of customers (thousands) using TestRail with JIRA, so it’s likely a problem with your specific JIRA web server. This is however easy to troubleshoot. Can you please simply activate detailed logging in TestRail, reproduce the issue and email us the log?

http://docs.gurock.com/testrail-faq/system-debug

The log would show the exact respsonse JIRA or your web server sends.

I hope this helps and I look forward to your feedback!


#3

Hi,

I activated the debug options but I cannot see anything relevant.

If I execute this cURL, I get the same response.

curl -L ‘http://testrail.pre.uoc.es/index.php?/defects/ajax_push’ -H ‘Accept: text/plain, /; q=0.01’ -H ‘Accept-Encoding: gzip, deflate’ -H ‘Accept-Language: es-ES,es;q=0.8,en-US;q=0.5,en;q=0.3’ -H ‘Connection: keep-alive’ -H ‘Content-Type: application/x-www-form-urlencoded; charset=UTF-8’ -H ‘Cookie: tr_session=0a928235-c7ea-4f55-b7b5-f286b48b9c78; tr_rememberme=3%3AwjBgo3qnrJw1JLRXR0Cz-b0p7bT.aSlyJ0fwPaOgj’ -H ‘Host: testrail.pre.uoc.es’ -H ‘Referer: http://testrail.pre.uoc.es/index.php?/tests/view/18519&group_by=cases:section_id&group_order=asc&group_id=1147’ -H ‘User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Firefox/45.0’ -H ‘X-Requested-With: XMLHttpRequest’ --data $‘status_id=1&assignedto=&comment=&version=&elapsed=&defects=&attachments=&custom_step_results=&project_id=20&test_ids=18519&_token=7Nx539%2FWd07CA7nXRRZE&_version=5.2.0.3452&defect_summary=Failed+test%3A+Informe+d’assignatures+relacionades&defect_project=UNICAMPUS&defect_issuetype=1&defect_component=15873&defect_assignee=mlopezreye&defect_priority=2&defect_affects_version=19257&defect_description=T18519%3A+Informe+d’assignatures+relacionades%0Ahttp%3A%2F%2Fventola-pre.uoc.es%2Ftestrail%2Findex.php%3F%2Ftests%2Fview%2F18519%0A&field=issuetype’
{“result”:false,“error”:“Plugin “Jira_REST” returned an error: Empty reply from server”}%

Am I missing something?


#4

Hi!

You can find the TestRail logs in TestRail’s log directory and this also includes the communication between TestRail and JIRA. You can find the path of TestRail’s log directory in the config.php configuration file in TestRail’s installation directory.

“Empty reply from server” sounds like a network/HTTP error but the log may contain additional details.

I hope this helps!

Cheers,
Tobias