We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0271f1e commit 8652bfdCopy full SHA for 8652bfd
1 file changed
scripts/fetch-data.ts
@@ -569,9 +569,9 @@ async function extractModulePropsFromZip(downloadUrl: string): Promise<Record<st
569
maxBuffer: 64 * 1024 // 64KB buffer
570
});
571
572
- // Check if content is empty - treat as failure and retry
573
- if (!modulePropContent) {
574
- throw new Error('Empty content returned from runzip');
+ // Check if content is empty or only whitespace - treat as failure and retry
+ if (!modulePropContent || !modulePropContent.trim()) {
+ throw new Error(`Empty content returned from runzip for URL: ${downloadUrl}`);
575
}
576
577
// Parse module.prop content
0 commit comments