Merge branch 'develop' into trunk

This commit is contained in:
Vincent BRIDIER 2022-12-06 11:52:04 +01:00
commit e38c3b4e4c
No known key found for this signature in database
GPG key ID: 8571BFA20420D512

View file

@ -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));
}