microsoft / microsoft/azure-devops-python-api
Creating codeWiki Caused by ResponseError('too many 500
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- Python
- Star
- 684
- Fork
- 218
- Merge trung bình
- 8 ngày 10 giờ
- Pull request đã merge (30 ngày)
- 1
Mô tả
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)
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Hướng nghiên cứu
Bắt đầu với lệnh gọi wiki_client.create_wiki và lệnh gọi create_or_update_page tiếp theo trong đoạn trích của issue, sau đó tái hiện request đối với Azure DevOps wiki API bằng các giá trị project và wiki được hiển thị. Được xem là hoàn tất khi việc tạo wiki không còn trả về 500-response retry error đã nêu và thao tác trang tiếp theo có thể tiếp tục.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- azure, python
- Lĩnh vực
- api
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 25/100