I am encountering “TestRailAPIException: Unknown SSL protocol error in connection to mnv.testrail.com:443"” error while posting the results to the TestRail by using PHP TestRail API.
I am not triggering the test cases from UI script instead I am posting the results to the TestRail through my automation scripts using TestRail API directly. On investigating this issue, I noticed that the following exception is thrown by the below mentioned if loop with in protected function _send_request($method, $uri, $data) function in TestRailAPIClient.
$response = curl_exec($ch);
function if ($response === false)
throw new TestRailAPIException(curl_error($ch)); }
It appears that the response received after the curl execution is false thereby causing it to the above exception.