Susbcribing to all queues error

Hi

I want to subscribe to all queues with .NET SDK. After using GetRoutingQueuesDivisionviewsAll and obtaining all queue ID's, I iterate over the result to subscribe to all the queues in the list, (there are 123). I use handler.AddSubscription($"v2.routing.queues.{queue}.conversations.calls", typeof(QueueConversationCallEventTopicCallConversation)) inside the loop. However, after subscribing to around 60 queues, it returns the following error:

Error calling PostNotificationsChannelSubscriptions: {"message":"Rate limit exceeded the maximum. Retry the request in [32] seconds","code":"too.many.requests.retry.after","status":429,"contextId":"0b43b444-93c9-405c-a7f1-86d3f5332acf","details":[],"errors":[]}
starting

is there a way to subscribe to all queues available at once without getting this error?

Thank you

Have you tried using the AddSubscriptions (with an s) method that accepts multiple topics at once? https://github.com/MyPureCloud/platform-client-sdk-dotnet/blob/master/build/src/PureCloudPlatform.Client.V2/Extensions/Notifications/NotificationHandler.cs#L114

This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.