Skip to content

Commit bed7458

Browse files
committed
Fix validation issue with storage emulator
Got the same error as explained in this issue: googleapis/google-cloud-node#654 (comment)
1 parent b1245bb commit bed7458

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

functions/src/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ async function downloadFrame(path: string): Promise<Buffer> {
9393
.storage()
9494
.bucket("framejoy-frames")
9595
.file(path)
96-
.download();
96+
.download({ validation: !process.env.FUNCTIONS_EMULATOR });
9797
return buffer;
9898
}
9999

0 commit comments

Comments
 (0)