1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-13 22:54:25 +01:00

Improving error reporting API

This commit is contained in:
David Bomba 2016-02-17 10:36:45 +11:00
parent 7cd3bac29c
commit 7da522599c

View File

@ -744,7 +744,7 @@ class Invoice extends EntityModel implements BalanceAffecting
$opts = [ $opts = [
CURLOPT_URL => PHANTOMJS_CLOUD . env('PHANTOMJS_CLOUD_KEY') . '/', CURLOPT_URL => PHANTOMJS_CLOUD . env('PHANTOMJS_CLOUD_KEY') . '/',
CURLOPT_RETURNTRANSFER => true, CURLOPT_RETURNTRANSFER => true,
CURLOPT_CUSTOMREQUEST => 'GET', CURLOPT_CUSTOMREQUEST => 'POST',
CURLOPT_POST => 1, CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => $jsonEncodedData, CURLOPT_POSTFIELDS => $jsonEncodedData,
CURLOPT_HTTPHEADER => [ CURLOPT_HTTPHEADER => [
@ -758,7 +758,7 @@ class Invoice extends EntityModel implements BalanceAffecting
curl_close($curl); curl_close($curl);
Log::info($response); Log::info($response);
$encodedString = strip_tags($response); $encodedString = strip_tags($response);
$pdfString = Utils::decodePDF($encodedString); $pdfString = Utils::decodePDF($encodedString);