You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this might be a case of us protecting you from "bad" Yahoo data? Because what does it even mean that they have a P/E ratio of "infinity" ? 😅
I would probably try/catch this error and strip out that value (or disable validation and do my own checks). But if I'm missing something here, let me know. How would you ideally process { trailingPE: "Infinity" } ?
Validation error for symbol "BRK.B"
I'm encountering a validation error when trying to retrieve data for the symbol "BRK.B" using the yahoo-finance2 library (version 2.13.3). This issue started occurring recently for this symbol, which previously worked without any problems. The error suggests a possible change in Yahoo's API or an edge case that needs to be addressed.Error Details:
error: Validation error for BRK.B, attempt 3/3: Failed Yahoo Schema validation {"timestamp":"2025-01-05T18:11:48.754Z"}
warn: Failed to screen 2 symbols: BF.B, BRK.B {"timestamp":"2025-01-05T18:11:48.755Z"}
info: No symbols met the selection criteria {"timestamp":"2025-01-05T18:12:22.305Z"}
Validation Error
Minimal Reproduction
await yahooFinance.quoteSummary('BEEF3.SA", { modules: [ 'price', 'summaryDetail', 'financialData', 'defaultKeyStatistics', 'assetProfile', ], });
Symbol(s) that it happened for
Error Message
Environment
Browser or Node: Node
Node version (if applicable): v20.16.0
Npm version: 10.8.2
Browser version (if applicable):
Library version (e.g.
1.10.1
): 2.13.2Additional Context
The text was updated successfully, but these errors were encountered: