Commit 6dfea66
Detect non-Parquet server responses (502, 404, HTML error pages)
When the API returns an error page instead of Parquet data, the client
now detects this by checking the PAR1 magic bytes before parsing, and
raises a clear OmniPathAPIError instead of a cryptic Polars error.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 65f2c8e commit 6dfea66
1 file changed
Lines changed: 19 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
80 | 99 | | |
81 | 100 | | |
82 | 101 | | |
| |||
0 commit comments