Skip to content

Commit 25ffec5

Browse files
s-sajid-aliclaude
andcommitted
fix(storage-finder): follow redirects when downloading CSV
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
1 parent 18bcc98 commit 25ffec5

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/storage-finder-data-generator/generate.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ async function loadCsvSource(
139139
const url =
140140
process.env[STORAGE_FINDER_ENV_URL_KEY] ?? DEFAULT_STORAGE_FINDER_SHEET_URL;
141141
logger.log(`Downloading CSV from ${url}`);
142-
const response = await fetch(url);
142+
const response = await fetch(url, { redirect: "follow" });
143143
if (!response.ok) {
144144
throw new Error(
145145
`Failed to download CSV. HTTP ${response.status} ${response.statusText}`,

0 commit comments

Comments
 (0)