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
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.