diff --git a/app/Jobs/CafelJobs.php b/app/Jobs/CafelJobs.php index 03f2340..b6647b9 100644 --- a/app/Jobs/CafelJobs.php +++ b/app/Jobs/CafelJobs.php @@ -3,6 +3,8 @@ namespace App\Jobs; use App\Lib\CafelApi\Models\CafelClientModel; +use GuzzleHttp\Exception\ConnectException; +use GuzzleHttp\Exception\RequestException; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; @@ -84,7 +86,11 @@ abstract class CafelJobs implements ShouldQueue $attribute => collect($messages)->implode(', ') . $verifiedValue ]; })->implode(' '))->all(); - } + } catch (ConnectException | RequestException $e) { + // ! Guzzle SSL Error connection failure + \report($e); + $this->invalidRows[] = collect($row)->put('validation_message', $e->getMessage())->all(); + }//end try }//end foreach } while (!empty($result)); }