Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Azure QuotaExceededException

When sending a notifications to a notificationhub I receive the following exception:

Microsoft.ServiceBus.Messaging.QuotaExceededException: The remote server returned an error <403> Forbidden. The maximum number of Notification operations has been reached or exceeeded. Actual:33360, Max allowed: 33000..TrackingID55ccd1f7a791-4047-96fd-0d0be2278ff7_g7

Any ideas on how to fix this problem?

like image 972
user2320351 Avatar asked Mar 26 '26 19:03

user2320351


1 Answers

What you should keep in mind is that it appears that all operations (not only sending notifications) you do with the NotificationHubClient seems to add to your daily Operations Quota.

I have made the mistake of doing unnecessary registration updates whenever the client logs on to my API.
Device registrations are valid for 90 days, so I'll not have to make any updates unless the registration has/about to expire. (I do save the expire date, which you'll get from the RegistrationDescripton.ExpirationTime, in my user table in my server app for knowing when to do a registration update)

like image 199
Magnus Johansson Avatar answered Mar 28 '26 13:03

Magnus Johansson



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!