Skip to content

Commit b4f68e2

Browse files
authored
Merge pull request #2997 from pyth-network/cprussin/fix-gdp-publisher-error
fix(insights): fix error on loading GDP publishers
2 parents 657e5ec + b361bf9 commit b4f68e2

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/insights/src/server/pyth.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,7 @@ export const getFeedForSymbolRequest = async ({
9393

9494
const rawData = await data.text();
9595
const parsedData = parse(rawData);
96-
return priceFeedsSchema.element.parse(parsedData);
96+
return parsedData === undefined
97+
? undefined
98+
: priceFeedsSchema.element.parse(parsedData);
9799
};

0 commit comments

Comments
 (0)