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

TestRail API returned HTTP 500 / Trying to get property 'description' of non-object

Hi,

We have automated test plans running for hours and we are facing the issue when after a few hours running (every run this occurs differently from 2 to 4 hours) the get_plan endpoint starts returning the following error: Trying to get property ‘description’ of non-object.

Has anybody ever seen this issue? One thing I can say is this started about 2 weeks ago.

Thanks in advance.

@Serhii

Hi,

Please send a support request to contact@gurock.com if you’re still encountering these issues.

Regards,
Shanu

@shanu.mandot,
Are there any updates. We experience the same issue.

My team is also running into this exact issue trying to migrate our automation to a new testrail server. @shanu.mandot Any updates?

@just_another_sdet

Hello,

Welcome to the TestRail Community and thanks for your report. This definitely shouldn’t be happening, and it isn’t something I’ve heard of recently from other users!

In order to help you out, could you please send us the detailed report of the issue at contact@gurock.com?

Regards,
Shanu

TestRail API returned HTTP 500 (“Trying to get property ‘description’ of non-object”)
Any solution to this issues or investigation detailing the root cause, this is an unacceptable application issues that needs urgent action:
– This issues happens intermittently
– All the test run under the queried test plan becomes inaccessible via API calls
– A work around is to delete the offending plan/runs (causes loss all the run entries )

I’ve got same error on Testrail 6.7.2.1043 hosted on Ubuntu

I got two plans with my testrail, with id’s 1444718 and 1444734 Then I perform get_plan request for first one, something like this:

curl --location --request GET 'https://testrail-url.com/index.php?/api/v2/get_plan/1444718' \
--header 'Authorization: Basic my-key'

I got correct response with a lot of data

If I try to performa the same on second one I just got short response:

curl --location --request GET 'https://testrail-url.com/testrail/index.php?/api/v2/get_plan/1444734' \
--header 'Authorization: Basic my-key'
{"error":"Trying to get property 'description' of non-object"}

But opening this plan via url in my browser: https://testrail-url.com/index.php?/plans/view/1444734 will not cause any error

I’ve send same message to contact@gurock.com, not sure why supported performed only via email, not via this forum

The only solution I found is to get rid of using get_plan endpoint. I used to use that to obtain run ID within the test plan. Now, I use workaround - run ID within the test plan is obtaining when adding that run to the plan by add_plan_entry . That method returns the new test plan entry including test runs so I am doing in Python

response = send_post("add_plan_entry/… ")
run_id = response[“runs”][0][“id”]