microsoft / microsoft/azure-devops-python-api
Feed Client - Resource not found 404
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ả
Problem
When using the Feed Client, the client raises an exception which shows:
azure.devops.exceptions.AzureDevOpsClientRequestError: The resource cannot be found. Operation returned a 404 status code.
Minimal example:
from msrest.authentication import BasicAuthentication
import os
if __name__ == "__main__":
org = os.environ.get('AZDO_ORG_SERVICE_URL')
token = os.environ.get('AZDO_PERSONAL_ACCESS_TOKEN')
credentials = BasicAuthentication('', token)
from azure.devops.v6_0.feed.feed_client import FeedClient
feed_client = FeedClient(base_url=org, creds=credentials)
feed_client.get_feeds()
Other clients like Core are working without any problems.
The permissions of the token are not limited and I am the owner of my test organization.
Enabling debugging output of logging leads to:
DEBUG:azure.devops.client:API resource location c65009a7-474a-4ad1-8b42-7d852107ef8c is not registered on https://dev.azure.com/[Removed].
Details
Python Version: 3.8.5
Package Version: 6.0.0b4
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 ví dụ FeedClient tối thiểu sử dụng azure.devops.v6_0.feed.feed_client và bật ghi log debug của azure.devops.client để tái hiện thông báo về vị trí tài nguyên chưa được đăng ký. Theo dõi FeedClient.get_feeds và so sánh với một client đang hoạt động; hoàn thành khi get_feeds không còn trả về 404 đối với một tổ chức và token hợp lệ.
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, devops
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100