Feed Client - Resource not found 404

Đang mở
#364 2 bình luận 1 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
1-2 ngày
Mức phù hợp với người mới
35/100
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
azure, python
Lĩnh vực
api, devops

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.

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

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

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

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của microsoft/azure-devops-python-api

Tất cả issue của microsoft/azure-devops-python-api

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.