mirror of
https://github.com/invoiceninja/invoiceninja.git
synced 2024-11-12 14:12:44 +01:00
Improving error reporting API
This commit is contained in:
parent
7cd3bac29c
commit
7da522599c
@ -744,7 +744,7 @@ class Invoice extends EntityModel implements BalanceAffecting
|
||||
$opts = [
|
||||
CURLOPT_URL => PHANTOMJS_CLOUD . env('PHANTOMJS_CLOUD_KEY') . '/',
|
||||
CURLOPT_RETURNTRANSFER => true,
|
||||
CURLOPT_CUSTOMREQUEST => 'GET',
|
||||
CURLOPT_CUSTOMREQUEST => 'POST',
|
||||
CURLOPT_POST => 1,
|
||||
CURLOPT_POSTFIELDS => $jsonEncodedData,
|
||||
CURLOPT_HTTPHEADER => [
|
||||
@ -758,7 +758,7 @@ class Invoice extends EntityModel implements BalanceAffecting
|
||||
curl_close($curl);
|
||||
|
||||
Log::info($response);
|
||||
|
||||
|
||||
$encodedString = strip_tags($response);
|
||||
$pdfString = Utils::decodePDF($encodedString);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user