Commit 3544c32
fix: Add graceful error handling for getRecentPerformanceSamples RPC failures
Issue: Production errors when RPC nodes return invalid params error
for getRecentPerformanceSamples method
Solution: Wrap RPC call in try-catch, return helpful fallback message
instead of crashing
Error fixed:
- SolanaJSONRPCError: Invalid params: invalid type: map, expected usize
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>1 parent 523cba0 commit 3544c32
File tree
2 files changed
+263
-243
lines changed- app/api/getAnswer/tools
- lib/ai/ml/__tests__
2 files changed
+263
-243
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
31 | 44 | | |
32 | 45 | | |
33 | 46 | | |
| |||
0 commit comments