azure-devops-python-api icon indicating copy to clipboard operation
azure-devops-python-api copied to clipboard

Creating codeWiki Caused by ResponseError('too many 500

Open r00t01101010 opened this issue 5 years ago • 2 comments

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)

r00t01101010 avatar Jun 19 '20 12:06 r00t01101010

Hi @tedchamb, kindly have a look at this issue. Is it possible to disable SSL validation in the code while creating a connection?

aliartiza75 avatar Jun 19 '20 14:06 aliartiza75

any updates, i get this error too. creating pages is fine.

markcunninghamuk avatar Apr 06 '22 07:04 markcunninghamuk