Skip to content
This repository has been archived by the owner on Feb 26, 2018. It is now read-only.

Common errors

pluijm edited this page Mar 4, 2013 · 2 revisions

Common errors

Http status 0 returned

If you get an unknown http status 0 error, there might be something wrong with your SSL config. You can test this by adding the following line before doing a request:

<?php
Moneybird\HttpClient::$verifyHostAndPeer = false;
?>

If this solves your problem, please check the SSL config on the server. Do not use this code on production! Download updated certificates and follow the instructions on the website. Use the following code when calling HttpClient:

<?php
$transport = new Moneybird\HttpClient(array(CURLOPT_CAINFO, '/path/to/ca-bundle.pem'));
?>
Clone this wiki locally