diff --git a/backend/src/Service/Ingestion/IngestionService.php b/backend/src/Service/Ingestion/IngestionService.php index 4bc5667..ce0b21f 100644 --- a/backend/src/Service/Ingestion/IngestionService.php +++ b/backend/src/Service/Ingestion/IngestionService.php @@ -39,6 +39,13 @@ class IngestionService } catch (HighCloudCoverageException $e) { $this->logger->info('S2 cloud too high, falling back to Sentinel-3', ['reason' => $e->getMessage()]); $this->ingest($bbox, $date, 'Sentinel-3', 'sentinel-3-olci'); + } catch (\Throwable $e) { + // Erreur S2 non liée à la couverture nuageuse (HTTP 4xx/5xx, timeout…) + // → tenter S3 plutôt que perdre tout le cycle pour cette zone + $this->logger->warning('S2 ingestion error, falling back to Sentinel-3', [ + 'reason' => $e->getMessage(), + ]); + $this->ingest($bbox, $date, 'Sentinel-3', 'sentinel-3-olci'); } }