Azure-sdk-for-python: Backup Usage Summaries of VaultRecoveryServicesBackup gives End of Paging error

Created on 16 Jul 2020  路  3Comments  路  Source: Azure/azure-sdk-for-python

  • Package Name: azure-mgmt-recoveryservicesbackup:
  • Package Version: 0.8.0:
  • Operating System: windows10:
  • Python Version: 3.8:

Describe the bug
I have created a RecoveryServicesBackupClient. I am then using iterator_object = backup_usage_summaries.list(resource_group_name, vault_name) method to create an iterator object. On Using next(iterator_object) to iterate through it, it gives me an End of Paging error.

I also tried iterating using a for loop and tried printing the items. The execution stops after execution of for loop without any error.

Any azure developer can help resolve this bug?
To Reproduce
Steps to reproduce the behavior:

credentials = ServicePrincipalCredentials(tenant, client_id, client_secret)
subscription_client = SubscriptionClient(credentials=credentials)
subscriptions_list = subscription_client.subscriptions.list()
iterable = next(subscriptions_list)
subscription_id = iterable.subscription_id
recovery_backup_client = RecoveryServicesBackupClient(credentials=credentials, subscription_id=subscription_id)
iteraton_1 = recovery_backup_client.backup_usage_summaries.list(resource_group_name, vault_name)
next(iteration_1)
End of Paging

Expected behavior
next(iteration_1) should give an iterable and can be printed

Mgmt Recovery Services Backup Service Attention customer-reported question

All 3 comments

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

@pratimaupadhyay02: Can you please take a look?

Sincere apologies for the delay. Investigation was delayed due to other priorities and will be taken up very soon.

Was this page helpful?
0 / 5 - 0 ratings