microsoft / microsoft/azure-devops-python-api

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

未關閉
#475 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

主要語言
Python
星號
684
分支
218
平均合併
8 天 10 小時
30 天內合併 PR
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. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

研究方向

首先,使用提供的 Python 程式碼片段、azure-devops==7.1.0b4 和有效的 Azure DevOps PAT 重現此故障。追蹤 list_pipelines() 呼叫經過 pipelines 用戶端和驗證處理的過程;當該呼叫能夠列出 pipelines 且不引發 AzureDevOpsAuthenticationError 時,即表示完成。

由索引模型根據 Issue 內容生成。

評估

技術堆疊
azure, python
領域
api, devops
Issue 類型
缺陷
難度
3/5
預估耗時
1-2 天
活躍度
停滯
描述清晰度
基本清楚
新手友好度
45/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。