microsoft / microsoft/azure-devops-python-api

Creating codeWiki Caused by ResponseError('too many 500

オープン
#337 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
684
フォーク
218
平均マージ
8日 10時間
マージ済み PR(30日)
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)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. 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

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。