fix(csv-enricher): Add HTTP status code checking for remote file fetches (#15454)

This commit is contained in:
Pedro Silva 2025-12-01 12:29:43 +00:00 committed by GitHub
parent d9fc440c5f
commit 7af6063bf3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -632,6 +632,7 @@ class CSVEnricherSource(Source):
if parsed_location.scheme in ("http", "https"):
try:
resp = requests.get(self.config.filename)
resp.raise_for_status() # Raise an exception for HTTP error status codes
decoded_content = resp.content.decode("utf-8-sig")
rows = list(
csv.DictReader(