Client should be able to handle None on key values.
还没有人认领这个 Issue。
评估
调研方向
Start with typesense/documents.py, especially documents.upsert, and follow the request path into typesense/api_call.py where the reported error is raised. Reproduce an upsert containing a Python None value for a key and clarify the intended graceful handling; done means the request no longer fails with the reported malformed-field error.
由索引模型根据 Issue 内容生成。
描述
Description
Client should be able to handle None on key values.
File "/site-packages/typesense/documents.py", line 42, in upsert
return self.api_call.post(self._endpoint_path(), document, params)
File "/site-packages/typesense/api_call.py", line 145, in post
timeout=self.config.connection_timeout_seconds)
File "/site-packages/typesense/api_call.py", line 115, in make_request
raise ApiCall.get_exception(r.status_code)(r.status_code, error_message)
typesense.exceptions.RequestMalformed: [Errno 400] Field `xyz` must be a string.
Steps to reproduce
Send a Python None value for some key in the call documents.upsert(document)
Expected Behavior
Gracefully handle None value for a key
Typsense Version:
0.21
- 主要语言
- Python
- 星标
- 247
- 派生
- 66
- 平均合并
- 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 于 172 天前认领。 未关闭
难度 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 于 245 天前认领。 未关闭
难度 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 于 266 天前认领。 未关闭
难度 3/5 1-2 天 新手友好度 55/100
typesense/typesense-python#114 · 8 条评论 ·
查看 typesense/typesense-python 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 84/100
-
bug
难度 2/5 1-3 小时 新手友好度 77/100
AstrBotDevs/AstrBot#10720 ·
维护者通常 1 天内回复
-
cause/upstream comp/cli P2 provider/other tool/file type/bug
难度 2/5 1-3 小时 新手友好度 78/100
NousResearch/hermes-agent#143900 ·
维护者通常 1 天内回复
-
难度 1/5 1-3 小时 新手友好度 85/100
WLAN-Pi/wlanpi-profiler#341 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复