microsoft / microsoft/azure-devops-python-api

Feed Client - Resource not found 404

Open
#364 2 comments 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
684
Forks
218
Avg merge
8d 10h
Merged PRs (30d)
1

Description

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

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the minimal FeedClient example using azure.devops.v6_0.feed.feed_client and enable azure.devops.client debug logging to reproduce the unregistered resource-location message. Trace FeedClient.get_feeds and compare it with a working client; done means get_feeds no longer returns the 404 for a valid organization and token.

Written by the indexing model from the issue text.

Assessment

Tech stack
azure, python
Domain
api, devops
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.