microsoft / microsoft/azure-devops-python-api
Feed Client - Resource not found 404
還沒有人認領這個 Issue。
- 主要語言
- Python
- 星號
- 684
- 分支
- 218
- 平均合併
- 8 天 10 小時
- 30 天內合併 PR
- 1
描述
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
貢獻指南
這個儲存庫沒有索引到貢獻指南
從這裡開始
- 先讀完整個 Issue,再讀專案的貢獻指南。
- 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
- Fork 儲存庫,在一個分支上完成修改。
- 送出 Pull Request,並在描述裡引用這個 Issue 編號。
研究方向
從使用 azure.devops.v6_0.feed.feed_client 的最小 FeedClient 範例開始,並啟用 azure.devops.client 偵錯記錄,以重現未註冊資源位置訊息。追蹤 FeedClient.get_feeds,並將其與正常運作的用戶端進行比較;當 get_feeds 對有效的組織和權杖不再回傳 404 時,即表示完成。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- azure, python
- 領域
- api, devops
- Issue 類型
- 缺陷
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 35/100