Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

create_attachment in wiki_client unable to upload png files

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

還沒有人認領這個 Issue。

評估

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

研究方向

從 wiki_client.create_attachment 開始,使用提供的二進位 PNG 上傳程式碼片段重現該失敗。追蹤在 Azure Wiki 要求之前如何處理 upload_stream;當 PNG 附件能夠成功建立且不再出現 Base-64 錯誤時,即視為完成。

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

描述

I am trying to create a png file as attachment in azure wiki as code and getting the following issue:

azure.devops.exceptions.AzureDevOpsServiceError: The wiki attachment creation failed with message : The input is not a valid Base-64 string as it contains a non-base 64 character, more than two padding characters, or an illegal character among the padding characters.

This is the snippet

version_descriptor = GitVersionDescriptor(version="main",version_type="branch")
with open("./sample-image.png","rb") as png_file:
    wiki_client.create_attachment(upload_stream=png_file, version_descriptor=version_descriptor, project="<project-name>", wiki_identifier="<wiki-name>",  name="sample-image.png")
主要語言
Python
星號
684
分支
218
平均合併
8 天 10 小時
30 天內合併 PR
1

貢獻指南

這個儲存庫沒有索引到貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

microsoft/azure-devops-python-api 的其他 Issue

查看 microsoft/azure-devops-python-api 的全部 Issue

相似的 Issue

更多 Python Issue

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

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