Repository navigation
Commit b5e42ef
Raise the API error from Project.search instead of KeyError (#556)
* Raise the API error from Project.search and stop search_all at the result window
Project.search raises RoboflowError with the API's error message and status
code when the search API answers with an error, instead of failing on the
missing "results" key.
Project.search_all pages with offset and limit only inside the first 10,000
results, the most the project search API serves. The last page shrinks to end
there, and the next step raises RoboflowError pointing to
Workspace.search_all("project:<project>"), which pages with a continuation
token.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Raise the API error from Project.search and leave search_all's paging as it was
The project search backend is getting offset paging past the 10,000-result
window (roboflow-search), so search_all no longer stops there. What stays is
Project.search raising the API's error instead of failing with KeyError on
'results'.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>1 parent c85189e commit b5e42ef
2 files changed
Lines changed: 20 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
755 | 755 | | |
756 | 756 | | |
757 | 757 | | |
| 758 | + | |
| 759 | + | |
| 760 | + | |
758 | 761 | | |
759 | 762 | | |
760 | 763 | | |
| |||
831 | 834 | | |
832 | 835 | | |
833 | 836 | | |
834 | | - | |
| 837 | + | |
835 | 838 | | |
836 | 839 | | |
837 | 840 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
972 | 972 | | |
973 | 973 | | |
974 | 974 | | |
| 975 | + | |
| 976 | + | |
| 977 | + | |
| 978 | + | |
| 979 | + | |
| 980 | + | |
| 981 | + | |
| 982 | + | |
| 983 | + | |
| 984 | + | |
| 985 | + | |
| 986 | + | |
| 987 | + | |
| 988 | + | |
| 989 | + | |
975 | 990 | | |
976 | 991 | | |
977 | 992 | | |
| |||
0 commit comments