Exception when handling upload error.
まだ誰も着手していません。
評価
調査の方向性
appcenter/versions.py の _wait_for_upload から始め、upload_build と upload_and_release から呼び出されるこの処理で、commit の upload response がどのように処理されているかを確認します。zip upload error を再現し、レスポンスの error_details が AttributeError なしで表面化することを確認します。
索引モデルが issue の本文から書いたものです。
説明
I'm encountering an exception when trying to uploading a zip file for a windows artifact.
This is what I'm trying to run:
client = appcenter.AppCenterClient(access_token=accessToken)
client.versions.upload_and_release(
owner_name=ownerName,
app_name=appName,
binary_path=artifactFile, # A zip file that works when uploaded using the site.
group_id=distributionGroup, # 00000000-0000-0000-0000-000000000000 (Collaborators)
release_notes="upload test"
)
And the issues happen here:
This is the exception:
Exception has occurred: AttributeError (note: full exception trace is shown but execution is paused at: _run_module_as_main)
'CommitUploadResponse' object has no attribute 'get'
File "C:\Python310\Lib\site-packages\appcenter\versions.py", line 489, in _wait_for_upload
+ response_data.get("error_details", "?")
File "C:\Python310\Lib\site-packages\appcenter\versions.py", line 624, in upload_build
upload_end_response = self._wait_for_upload(
File "C:\Python310\Lib\site-packages\appcenter\versions.py", line 682, in upload_and_release
release_id = self.upload_build(
File "C:\Utils\UploadToAppCenter.py", line 72, in main
client.versions.upload_and_release(
File "C:\Utils\UploadToAppCenter.py", line 87, in <module>
main()
File "C:\Python310\Lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "C:\Python310\Lib\runpy.py", line 196, in _run_module_as_main (Current frame)
return _run_code(code, main_globals, None,
AttributeError: 'CommitUploadResponse' object has no attribute 'get'
The response I'm getting :
b'{"id":"some-guid-A","upload_status":"error","error_details":"A problem occured while extracting your app. (Correlation ID: some-guid-B)"}'
- 主要言語
- Python
- スター
- 25
- フォーク
- 20
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトの環境構築ファイルはまだ確認していません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
microsoft/appcenter-rest-python のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
microsoft/appcenter-rest-python の issue をすべて見る
似ている issue
-
adr
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
kristofdegrave/homeassistant-smart-charging#1607 ·
メンテナーはふだん 1 日以内に返信
-
namespace operations
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
EclipseFdn/open-vsx.org#13665 ·
メンテナーはふだん 1 日以内に返信
-
doc good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
collective/icalendar#1865 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
canonical/opentelemetry-collector-operator#409 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 85/100
mozilla/addons-release-tests#1243 ·
メンテナーはふだん 1 日以内に返信