marisa.grasso | 2023-06-07 11:25:25 UTC | #1
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
tim.smith | 2023-06-07 12:56:55 UTC | #2
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
system | 2023-07-08 12:57:49 UTC | #3
This topic was automatically closed 31 days after the last reply. New replies are no longer allowed.
This post was migrated from the old Developer Forum.
ref: 20296