Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Azure: _check_hns throws an HttpResponseError #486

Open
M0dEx opened this issue Nov 21, 2024 · 0 comments · Fixed by #487
Open

Azure: _check_hns throws an HttpResponseError #486

M0dEx opened this issue Nov 21, 2024 · 0 comments · Fixed by #487

Comments

@M0dEx
Copy link

M0dEx commented Nov 21, 2024

It seems that the self.service_client.get_account_information() can throw an HttpResponseError when the client is supplied with a DefaultAzureCredential:

azure.core.exceptions.HttpResponseError: This request is not authorized to perform this operation using this permission.
RequestId:XXXXXXXXXXXXXXXXXX
Time:2024-11-21T13:35:08.6097052Z
ErrorCode:AuthorizationPermissionMismatch
Content: <?xml version="1.0" encoding="utf-8"?><Error><Code>AuthorizationPermissionMismatch</Code><Message>This request is not authorized to perform this operation using this permission.
RequestId:8XXXXXXXXXXXXXXXXXX
Time:2024-11-21T13:35:08.6097052Z</Message></Error>

Maybe the except ResourceNotFoundError should be extended to catch the HttpResponseError as well?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant