Skip to main content

I have setup some webhooks and my sytsem does a retrieve when it gets the notification. however i am getting multple postings for new messages within a split second of each other causing my system to grab the message twice.


is there a way to prevent multiple postings?


here are two examples of whats coming into my system as you can see they are .013 seconds apart for the same webhook posting



2017-12-06T22:02:06.000Z 18f63cd6-dad1-11e7-a27d-47bec3ea16f9 full event { method: 'POST',

body:

event: '/restapi/v1.0/account/7213xxxxx/extension/7265xxxxx/message-store',

timestamp: '2017-12-06T22:02:05.965Z',



2017-12-06T22:02:06.013Z 18f5046b-dad1-11e7-8088-1b4040c1d219 full event { method: 'POST',

body:

event: '/restapi/v1.0/account/7213xxxxx/extension/7265xxxxx/message-store',

timestamp: '2017-12-06T22:02:05.965Z',



Are the two messages identical? Could you please post the full content of them?
Hi Michael, 

As I can see susbcription IDs are different:
> subscriptionId: '6301c0e8-162b-476b-8e55-13ccef9a5748',
> subscriptionId: 'a38ebf5a-4d79-48f3-8376-92d5e011e025',

If you've created 2 WebHook subscriptions for the same event, e.g. message-store updates, then you'll receive 2 notifications generated from 1 event in the System. Could you please advise what is the Use Case of creating several WebHook subscriptions for the same event filters?

Thanks,



Reply