microsoft / microsoft/azure-devops-python-api

Feed Client - Resource not found 404

未关闭
#364 2 条评论 1 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 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

贡献指南

这个仓库没有索引到贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 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

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。