Delete Request in Batch Mode, need header
还没有人认领这个 Issue。
评估
调研方向
阅读 service.py 第 57 行附近的代码,其中 encode_multipart 调用 req.get_headers(),并检查 EntityDeleteRequest。确认批量删除路径当前未接收到任何 headers;完成的标准是它不再引发 NoneType 异常,并提供预期的 Accept header。
由索引模型根据 Issue 内容生成。
描述
Hello,
when we run delete requests in Batch Mode, it raises an exception:
...service.py", line 57, in encode_multipart
for hdr, hdr_val in req.get_headers().items():
AttributeError: 'NoneType' object has no attribute 'items'
So we need to define the get_header() method for EntityDeleteRequest(ODataHttpRequest), e.g. like this:
def get_headers(self):
return {'Accept': 'application/json'}
I would like to pull a request and do the bugfix.
- 主要语言
- Python
- 星标
- 268
- 派生
- 100
- PR 合并指标
- 30 天内没有已合并 PR
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
SAP/python-pyodata 的其他 Issue
-
chore
难度 2/5 1-3 小时 新手友好度 78/100
SAP/python-pyodata#304 ·
-
enhancement
难度 2/5 1-3 小时 新手友好度 62/100
SAP/python-pyodata#108 ·
-
chore
SAP/python-pyodata#302 · 已指派 1 人 ·
-
question
SAP/python-pyodata#294 · 1 条评论 · 已指派 1 人 ·
-
bug
SAP/python-pyodata#282 · 2 条评论 · 已指派 1 人 ·
查看 SAP/python-pyodata 的全部 Issue
相似的 Issue
-
bug
难度 2/5 1-3 小时 新手友好度 82/100
-
难度 2/5 1-3 小时 新手友好度 88/100
use-agent-os/agent-os#3314 ·
-
难度 2/5 1-3 小时 新手友好度 75/100
BasedHardware/omi#15662 · 1 条评论 ·
-
documentation help wanted
难度 2/5 1-3 小时 新手友好度 90/100
-
难度 2/5 1-3 小时 新手友好度 62/100
AiursoftWeb/AnduinOS-2#19 ·