logo
6
6
WeChat Login

针对无json返回调用做一下特殊的处理#18

Resolved
created 2025-08-03
Edit

现在client.request所有请求都是返回

return response.json()

但是有一些API方法,比如create_repo并没有json结构体返回,
都会抛出exception

cnb.exceptions.CNBAPIError: API request failed with status None, detail: Request failed: Expecting value: line 1 column 1 (char 0)

虽然对结果没啥影响,看看这部分是不是能优化一下。

2
assigned self
referenced ISSUE
Owner

已修复,可以使用 0.7.0 版本 @yuxin(Yu)
https://pypi.org/project/python-cnb/0.7.0/

1
Resolved ISSUE
Assignee
(段超)
Label
None yet
Priority
None yet
Time period
-
Property
Add custom properties to record and label key information
Participant