I have a cron job that gets unpaid invoices in our Xero account that haven't been sent to the customers.
If any of the invoices have attachments associated with them it retrieves them too.
The code then sends an email and the attachments to each customer.
The cron job was running fine for a year but then about a month ago it stopped working. It now gets the first invoice (and attachments), sends it to the customer and then crashes with the following error message.
Can anyone help me fix this please?
Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 18: transfer closed with 29205 bytes remaining to read (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in /home/iapuk/public_html/portal/php-oauth2/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:201
Stack trace:
I have a cron job that gets unpaid invoices in our Xero account that haven't been sent to the customers.
If any of the invoices have attachments associated with them it retrieves them too.
The code then sends an email and the attachments to each customer.
The cron job was running fine for a year but then about a month ago it stopped working. It now gets the first invoice (and attachments), sends it to the customer and then crashes with the following error message.
Can anyone help me fix this please?
Fatal error: Uncaught GuzzleHttp\Exception\RequestException: cURL error 18: transfer closed with 29205 bytes remaining to read (see https://curl.haxx.se/libcurl/c/libcurl-errors.html) in /home/iapuk/public_html/portal/php-oauth2/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php:201 Stack trace:
0 /home/iapuk/public_html/portal/php-oauth2/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(155): GuzzleHttp\Handler\CurlFactory::createRejection(Object(GuzzleHttp\Handler\EasyHandle), Array)
1 /home/iapuk/public_html/portal/php-oauth2/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php(105): GuzzleHttp\Handler\CurlFactory::finishError(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
2 /home/iapuk/public_html/portal/php-oauth2/vendor/guzzlehttp/guzzle/src/Handler/CurlHandler.php(43): GuzzleHttp\Handler\CurlFactory::finish(Object(GuzzleHttp\Handler\CurlHandler), Object(GuzzleHttp\Handler\EasyHandle), Object(GuzzleHttp\Handler\CurlFactory))
3 /home/iap in /home/iapuk/public_html/portal/php-oauth2/vendor/guzzlehttp/guzzle/src/Handler/CurlFactory.php on line 201