microsoft / microsoft/azure-devops-python-api
[azure arm endpoint creation] too many 500 error responses
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ả
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?
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 service_endpoint_client của Azure DevOps Python API và lệnh gọi create_service_endpoint được nêu trong báo cáo. Tái hiện request bằng các trường endpoint được cung cấp và kiểm tra response 500 nhận được; công việc được xem là hoàn tất khi xác định được hành vi của request hoặc client gây ra exception và ghi lại hoặc sửa hành vi đó.
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, cloud
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 25/100