microsoft / microsoft/azure-devops-python-api

[azure arm endpoint creation] too many 500 error responses

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

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

主要言語
Python
スター
684
フォーク
218
平均マージ
8日 10時間
マージ済み PR(30日)
1

説明

Hello,

I am trying to use service_endpoint_client to create a new azure ARM service connection, here's the code I am using:

core_client = self.__get_connection().clients_v6_0.get_service_endpoint_client()
        try:
            azure_arm = core_client.create_service_endpoint(
                {
                    "authorization": {
                        "parameters": {
                            "tenantid": "TENANT_ID",
                            "scope": "/subscriptions/SUB_ID/resourcegroups/RG_NAME"
                        },
                        "scheme": "ServicePrincipal"
                    },
                    "data": {
                        "environment": "AzureCloud",
                        "scopeLevel": "Subscription",
                        "subscriptionId": "SUB_ID",
                        "subscriptionName": "SUB_NAME",
                        "creationMode": "Automatic"
                    },
                    "name": "TEST_ME",
                    "type": "azurerm",
                    "isReady": True,
                    "url": "https://management.azure.com/",
                    "serviceEndpointProjectReferences": [
                        {
                            "name": "TEST_ME",
                            "description": "test",
                            "projectReference": {
                                "id": "AZ_DEVOPS_PROJECT_ID"
                            }
                        }
                    ]
                }
            )

The service connection was created successfully but I got this exception:

msrest.exceptions.ClientRequestError: Error occurred in request., RetryError: HTTPSConnectionPool(host='****', port=443): Max retries exceeded with url: /_apis/serviceendpoint/endpoints (Caused by ResponseError('too many 500 error responses'))

Could you please help to identify the issue?

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

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

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

Azure DevOps Python API の service_endpoint_client と、レポートに示されている create_service_endpoint 呼び出しから始めます。提供されたエンドポイントフィールドを使ってリクエストを再現し、結果として返される 500 レスポンスを調査します。リクエストまたはクライアントのどのような動作が例外を引き起こしているかを特定し、それを文書化または修正できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, python
領域
api, cloud
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
説明が足りない
初心者へのやさしさ
25/100

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

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