Skip to content

SnapshotException (status_code: 403) #1176

Open
@ryotatomioka

Description

@ryotatomioka

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions