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

Failing API call


#1

We are seeing an API call fail with a 400 client error when trying to push test results up from Bamboo. The call appears to be properly formatted, according to the reference guide.

error   30-Oct-2018 16:23:36    requests.exceptions.HTTPError: 400 Client Error: Bad Request for url: https://testrail.digi.com/testrail/index.php?/api/v2/add_result_for_case/39781/717961

https://testrail.digi.com/testrail/index.php?/api/v2/add_result_for_case/39781/717961 yield:
error “Content-Type header missing (use Content-Type: application/json)”

Another thing I am noticing, is that our authentication may not be working as it should. I noticed the follwing for another user, and checked on his account. The full name is listed as an email address, testrail@digi.com which can’t be right?

[AuthException] External auth: Bind: Invalid credentials

Details:
File: /var/www/html/testrail/sys/helpers/ex.php
Line: 25
Status Code: 500


#2

I figured this out, moderator, please delete this post.


#3

#4