We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 861edce commit 4b188d0Copy full SHA for 4b188d0
packages/functions/src/service.ts
@@ -474,7 +474,9 @@ async function streamAtURL(
474
475
const processLine = (line: string | undefined): { done: boolean, value: unknown } | null => {
476
// ignore all other lines (newline, comments, etc.)
477
- if (!line?.startsWith('data: ')) { return null; }
+ if (!line?.startsWith('data: ')) {
478
+ return null;
479
+ }
480
481
try {
482
const jsonData = JSON.parse(line.slice(6));
@@ -492,6 +494,10 @@ async function streamAtURL(
492
494
}
493
495
return null; // Unrecognize keys. Skip this line.
496
} catch (error) {
497
+ if (error instanceof FunctionsError) {
498
+ throw error;
499
500
+ // ignore other parsing error
501
return null;
502
503
};
0 commit comments