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

AttributeError: 'StorageManagementClientConfiguration' object has no attribute 'api_version' #35821

Closed
yfairweather opened this issue May 29, 2024 · 5 comments
Assignees
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-author-feedback More information is needed from author to address the issue. no-recent-activity There has been no recent activity on this issue. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)

Comments

@yfairweather
Copy link

  • Package Name: azure-mgmt-storage
  • Package Version: 21.1.0
  • Operating System: Ubuntu
  • Python Version: 3.8

Describe the bug
When running StorageManagementClient.storage_accounts.list(), sometimes we run into this error but other times it just works

To Reproduce
Steps to reproduce the behavior:

  1. Run StorageManagementClient.storage_accounts.list() and if you get lucky you will hit this backtrace:
Traceback (most recent call last):
  File "/opt/qumulo/env/202404241446/lib/python3.8/site-packages/azure/core/paging.py", line 124, in __next__
    return next(self._page_iterator)
  File "/opt/qumulo/env/202404241446/lib/python3.8/site-packages/azure/core/paging.py", line 76, in __next__
    self._response = self._get_next(self.continuation_token)
  File "/opt/qumulo/env/202404241446/lib/python3.8/site-packages/azure/mgmt/storage/v2023_01_01/operations/_storage_accounts_operations.py", line 1434, in get_next
    request = prepare_request(next_link)
  File "/opt/qumulo/env/202404241446/lib/python3.8/site-packages/azure/mgmt/storage/v2023_01_01/operations/_storage_accounts_operations.py", line 1417, in prepare_request
    _next_request_params["api-version"] = self._config.api_version
AttributeError: 'StorageManagementClientConfiguration' object has no attribute 'api_version'

Expected behavior
The API call should work 100% of the time

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

@github-actions github-actions bot added customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-team-attention This issue needs attention from Azure service team or SDK team question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files) labels May 29, 2024
Copy link

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @jalauzon-msft @vincenttran-msft.

@msyyc
Copy link
Member

msyyc commented Jun 18, 2024

We will make an investigation ASAP.

@msyyc
Copy link
Member

msyyc commented Jun 18, 2024

Hi @yfairweather Could you show the complete code screenshot? I can't reproduce the error locally.

@xiangyan99 xiangyan99 added the needs-author-feedback More information is needed from author to address the issue. label Jun 20, 2024
@github-actions github-actions bot removed the needs-team-attention This issue needs attention from Azure service team or SDK team label Jun 20, 2024
Copy link

Hi @yfairweather. Thank you for opening this issue and giving us the opportunity to assist. To help our team better understand your issue and the details of your scenario please provide a response to the question asked above or the information requested above. This will help us more accurately address your issue.

Copy link

Hi @yfairweather, we're sending this friendly reminder because we haven't heard back from you in 7 days. We need more information about this issue to help address it. Please be sure to give us your input. If we don't hear back from you within 14 days of this comment the issue will be automatically closed. Thank you!

@github-actions github-actions bot added the no-recent-activity There has been no recent activity on this issue. label Jun 27, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
customer-reported Issues that are reported by GitHub users external to the Azure organization. Mgmt This issue is related to a management-plane library. needs-author-feedback More information is needed from author to address the issue. no-recent-activity There has been no recent activity on this issue. question The issue doesn't require a change to the product in order to be resolved. Most issues start as that Service Attention This issue is responsible by Azure service team. Storage Storage Service (Queues, Blobs, Files)
Projects
None yet
Development

No branches or pull requests

3 participants