microsoft / microsoft/azure-devops-python-api
Creating codeWiki Caused by ResponseError('too many 500
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 684
- 派生
- 218
- 平均合并
- 8 天 10 小时
- 30 天内合并 PR
- 1
描述
Im getting this error
raise RetryError(e, request=request)
msrest.exceptions.ClientRequestError: Error occurred in request., RetryError: HTTPSConnectionPool(host='test-web.visualstudio.com', port=443): Max retries exceeded with url: /Sample2.0/_apis/wiki/wikis (Caused by ResponseError('too many 500 error responses'))
Its able to pull the Project ids but when creating a wiki and wiki pages as codeWiki I get that error above. My PAT is in full access. here is the last part of the code
for item in wikis:
print(item.id)
wiki_client.create_wiki({"name": WIKI_NAME, "ProjectId": PROJECT_ID}, project=PROJECT_NAME)
#wiki_client.create_or_update_page(parameters={"content": "TEST_PY_PY", "id": 1}, project=PROJECT_ID, wiki_identifier=WIKI_NAME, path="/PageTest", version=None)
obj = wiki_client.create_or_update_page(parameters={"content": "TEST_PY_PY", "id": 1}, project=PROJECT_ID, wiki_identifier=WIKI_NAME, path="/PageTest", version=None)
print(obj.text)
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 issue 片段中的 wiki_client.create_wiki 调用和后续的 create_or_update_page 调用开始,然后使用所示的 project 和 wiki 值,针对 Azure DevOps wiki API 重现该请求。完成的标准是 wiki 创建不再返回所报告的 500-response retry error,并且后续页面操作可以继续进行。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- azure, python
- 领域
- api
- Issue 类型
- 缺陷
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 活跃度
- 停滞
- 描述清晰度
- 基本清楚
- 新手友好度
- 25/100