microsoft / microsoft/azure-devops-python-api
list_pipelines() always throws AzureDevOpsAuthenticationError - azure-devops v7.1.0b4
Open
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 684
- Forks
- 218
- Avg merge
- 8d 10h
- Merged PRs (30d)
- 1
Description
Hi,
I can't get the list of Azure Pipelines because the function list_pipelines() always throws an AzureDevOpsAuthenticationError.
Steps to reproduce the error:
- Create an Azure DevOps PAT with Full access.
- Install the version 7.1.0b4:
pip install azure-devops==7.1.0b4 - Replace the parameter values with you PAT and Azure DevOps parameters and run this code:
from azure.devops.connection import Connection
from msrest.authentication import BasicAuthentication
personal_access_token = "PAT"
organization = "contoso"
project = "project-one"
credentials = BasicAuthentication('', personal_access_token)
connection = Connection(base_url=f'https://dev.azure.com/{organization}', creds=credentials)
pipelines_client = connection.clients.get_pipelines_client()
pipelines_list = pipelines_client.list_pipelines(project)
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reproducing the failure with the provided Python snippet using azure-devops==7.1.0b4 and a valid Azure DevOps PAT. Trace the list_pipelines() call through the pipelines client and authentication handling; done means the call lists pipelines without raising AzureDevOpsAuthenticationError.
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
- 45/100