Azure / Azure/MachineLearningNotebooks

SnapshotException (status_code: 403)

オープン
#1,176 コメント 1 件 リアクション 0 件 担当者 0 名 GitHub で見る
doc-enhancement Metastore MLOps
主要言語
Jupyter Notebook
スター
4.4k
フォーク
2.6k
PR マージ指標
30日以内にマージされた PR はありません

説明

Hi,

I have encountered SnapshotException with status code 403. It turns out that I have a read permission but not write permission for the subscription I was trying to submit my job to. It would be better if the error message was more informative.

This is the current error message
```
raise SnapshotException(get_http_exception_response_string(response))
azureml.exceptions._azureml_exception.SnapshotException: SnapshotException:
Message: {
"status_code": 403,
"url": "..."
}
InnerException None
ErrorResponse
{
"error": {
"message": "{\n \"status_code\": 403,\n \"url\": \"...\"\n}"
}
}
```

I think a better error message would be
```
Please make sure that you have write permission to subscription XYZ.
```

It might also be a good idea to document here what the typical causes for different status codes are.

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: 9c023d0b-94c0-8b80-3a43-e0d5beb2eefb
* Version Independent ID: 22714d0e-0f49-7264-5329-7c7b3e163d2d
* Content: [azureml.exceptions.SnapshotException class - Azure Machine Learning Python](https://docs.microsoft.com/en-us/python/api/azureml-core/azureml.exceptions.snapshotexception?view=azure-ml-py)
* Content Source: [AzureML-Docset/stable/docs-ref-autogen/azureml-core/azureml.exceptions.SnapshotException.yml](https://github.com/MicrosoftDocs/MachineLearning-Python-pr/blob/live/AzureML-Docset/stable/docs-ref-autogen/azureml-core/azureml.exceptions.SnapshotException.yml)
* Service: **machine-learning**
* Sub-service: **core**
* GitHub Login: @debfro
* Microsoft Alias: **debfro**

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

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

調査の方向性

この issue では、azureml.exceptions.SnapshotException と、AzureML-Docset/stable/docs-ref-autogen/azureml-core/azureml.exceptions.SnapshotException.yml にある SnapshotException のリファレンスソースが特定されています。まず、403 response がどのように表面化するかを追跡します。完了条件は、より有益な permission error を提供し、関連する status codes の典型的な原因を文書化したうえで、403 のケースを検証することです。

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

評価

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

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

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