When page is 1, TypesenseQueryError is returned
還沒有人認領這個 Issue。
評估
研究方向
Start in typesense/api_call.py around lines 139-140 and reproduce the issue with Typesense 0.17.0 using a query whose page is 1. Trace how parameter conversion affects the page value; done means the first-page query returns results without a TypesenseQueryError. Confirm the behavior against the reported 0.16.0 and 0.17.0 versions.
由索引模型根據 Issue 內容生成。
描述
Description
When I query with "page": 1, then Exception: TypesenseQueryError: {'code': 400, 'error': 'Parameter 'page' must be an unsigned integer.'} is returned
It seems like following line is causing problem (Here is the link to the code. https://github.com/typesense/typesense-python/blob/e22e31df314371b41cc57527c4583f3451a2f63d/typesense/api_call.py#L139C1-L139C1 )
# typesense-python/typesense/api_call.py:139-140
if params[key] == True:
params[key] = 'true'
Steps to reproduce
Using typesense==0.17.0, just query anything with "page": 1
Expected Behavior
First page results should be returned.
Actual Behavior
Exception: TypesenseQueryError: {'code': 400, 'error': 'Parameter 'page' must be an unsigned integer.'}
Metadata
Typesense Version:
0.16.0, 0.17.0
OS:
macOS Ventura 13.4.1
- 主要語言
- Python
- 星號
- 247
- 分支
- 68
- 平均合併
- 22 小時 47 分鐘
- 30 天內合併 PR
- 8
環境準備
這個專案沒有提供開發容器、Dockerfile 或貢獻指南,環境需要你自己搭建:先看它的 README,通用步驟見我們的新手貢獻指南。
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
typesense/typesense-python 的其他 Issue
-
`MultiSearchResponse` type does not account for union search response shape可能已有人在做 @tharropoulos 於 175 天前認領。 未關閉
難度 2/5 1-3 小時 新手友好度 78/100
typesense/typesense-python#128 ·
-
`documents.Documents.import_()` `batch_size` argument is ignored, type of `import_parameters` is missing `batch_size`可能已有人在做 @tharropoulos 於 248 天前認領。 未關閉
難度 2/5 1-2 天 新手友好度 68/100
typesense/typesense-python#124 ·
-
難度 1/5 1 小時以內 新手友好度 68/100
typesense/typesense-python#100 ·
-
難度 3/5 1-2 天 新手友好度 35/100
typesense/typesense-python#122 · 3 則留言 ·
-
[Bug] - DeprecationWarning on instantiation of Client可能已有人在做 @tharropoulos 於 269 天前認領。 未關閉
難度 3/5 1-2 天 新手友好度 55/100
typesense/typesense-python#114 · 8 則留言 ·
查看 typesense/typesense-python 的全部 Issue
相似的 Issue
-
難度 2/5 1-3 小時 新手友好度 68/100
維護者通常 1 天內回覆
-
難度 2/5 1-3 小時 新手友好度 76/100
scikit-learn-contrib/category_encoders#553 ·
維護者通常 1 天內回覆
-
flaky-watch
難度 2/5 1-3 小時 新手友好度 88/100
btclib-org/btclib#2839 ·
維護者通常 1 天內回覆
-
BarrelList constructor drops false-valued iterable contents可能已有人在做 @Gambit-Checkmate 今天認領。 未關閉
難度 2/5 1-3 小時 新手友好度 76/100
維護者通常 19 天內回覆
-
難度 2/5 1-3 小時 新手友好度 77/100
vllm-project/vllm#63863 ·
維護者通常 1 天內回覆