I'm trying to connect a cometd client to stream platform events, however, I'm getting an error that says I've exceeded my "total events daily limit".
{"clientId":"1xj1529zd8mx3ol01sl8hlzm5ewwj","channel":"/meta/subscribe","id":"2","subscription":"/event/Workato_Trigger__e","error":"403::Organization
total events daily limit exceeded","successful":false}"
The description of this error is not very specific about what limits it's talking about.
However, when I check my limits via GET /services/data/v45.0/limits/
, I still have plenty of remaining calls.
Below are all the limits that contain either the words "Streaming" or "Platform".
"DailyStandardVolumePlatformEvents": {
"Max": 50000,
"Remaining": 50000
},
"DailyStreamingApiEvents": {
"Max": 1000000,
"Remaining": 997927,
},
"MonthlyPlatformEvents": {
"Max": 1500000,
"Remaining": 1452923
},
"DailyStandardVolumePlatformEvents": {
"Max": 50000,
"Remaining": 50000
},
"DurableStreamingApiConcurrentClients": {
"Max": 2000,
"Remaining": 2000
},
"StreamingApiConcurrentClients": {
"Max": 2000,
"Remaining": 2000
}
Is there another limit somewhere that I should be checking?
Also, FYI, it seems like I can still publish events without any issue.
Best Answer
According to Proactive Alert Monitoring: Durable Streaming API Limit there are two scenarios that will result in the Organization total events daily limit exceeded. error message.
For the second scenario the help doc goes onto explain:
That sounds a lot like the "Maximum number of concurrent CometD clients (subscribers) across all channels and for all event types" limit from Platform Event Allocations.
While the first help doc implies a hard limit of 10, the latter has it ranging from 20 all the way up to 2,000 clients depending on the org edition.
It may well be that the first doc is out of date. It does seem odd that this error message would have anything to do with concurrent subscribers rather than the volume of events.
Another reference for that message is in the Streaming API Error Codes.
Are you using High-Volume Events? It kind of looks like you are as the MonthlyPlatformEvents limit is down to 1,452,923 from 1,500,000. What is really odd about that limit is the documentation - Monitor Your High-Volume Event Usage (my emphasis).
From my reading you are borderline on the edge of that limit. It may just be that the REST limits resource hasn't caught up with the actual usage yet.
I'd revisit the limits resource at intervals after the error occurs to see it the values change.