Azure / Azure/MachineLearningNotebooks
SnapshotException (status_code: 403)
- Ngôn ngữ chính
- Jupyter Notebook
- Star
- 4.4k
- Fork
- 2.6k
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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**
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Issue xác định azureml.exceptions.SnapshotException và nguồn tham chiếu SnapshotException tại AzureML-Docset/stable/docs-ref-autogen/azureml-core/azureml.exceptions.SnapshotException.yml; trước tiên hãy truy vết cách phản hồi 403 được hiển thị. Hoàn thành nghĩa là cung cấp lỗi quyền hạn giàu thông tin hơn, ghi lại các nguyên nhân thường gặp của những mã trạng thái liên quan, sau đó xác minh trường hợp 403.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- azure, machine-learning, python
- Lĩnh vực
- documentation, machine-learning
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 25/100