list_pipelines() always throws AzureDevOpsAuthenticationError - azure-devops v7.1.0b4

Open
#475 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

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

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.

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:

  1. Create an Azure DevOps PAT with Full access.
  2. Install the version 7.1.0b4: pip install azure-devops==7.1.0b4
  3. 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)
Dominant language
Python
Stars
684
Forks
218
Avg merge
8d 10h
Merged PRs (30d)
1

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.

More from microsoft/azure-devops-python-api

All issues in microsoft/azure-devops-python-api

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.