microsoft / microsoft/azure-devops-python-api
[azure arm endpoint creation] too many 500 error responses
未關閉
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 684
- 分支
- 218
- 平均合併
- 8 天 10 小時
- 30 天內合併 PR
- 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?
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從 Azure DevOps Python API 的 service_endpoint_client 和報告中所示的 create_service_endpoint 呼叫開始。使用提供的 endpoint 欄位重現請求,並檢查產生的 500 回應;完成的標準是找出導致例外的請求或用戶端行為,並記錄或修正該行為。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- azure, python
- 領域
- api, cloud
- Issue 類型
- 缺陷
- 難度
- 4/5
- 預估耗時
- 3-5 天
- 活躍度
- 停滯
- 描述清晰度
- 需要釐清
- 新手友好度
- 25/100