microsoft / microsoft/azure-devops-python-api

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

オープン
#475 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
Python
スター
684
フォーク
218
平均マージ
8日 10時間
マージ済み PR(30日)
1

説明

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)

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

まず、提供された Python スニペットを azure-devops==7.1.0b4 と有効な Azure DevOps PAT を使って実行し、失敗を再現します。pipelines クライアントと認証処理を通じて list_pipelines() の呼び出しを追跡します。呼び出しが AzureDevOpsAuthenticationError を発生させずにパイプラインを一覧表示できれば完了です。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
azure, python
領域
api, devops
issue の種類
バグ
難易度
3/5
見積もり時間
1〜2日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
45/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。