APIs & Integrations

gotmike
Colaborador líder

Webhooks firing twice

I'm seeing several webhooks firing twice from `deal.propertyChange` trigger.

 

the duplicate triggers get sent in the same batch and the same subscription, but have different event ids.

 

other than the event id, the payload is identical in both.

 

this is happening on several deal stages.

 

obviously, b/c we have lots of automation that gets triggered by these, it's kindof a problem.

 

here are example payloads...

 

trigger #1...

{
  "objectId": 1094503635,
  "propertyName": "dealstage",
  "propertyValue": "contact-requested",
  "changeSource": "API",
  "eventId": 375606152,
  "subscriptionId": 1793,
  "portalId": XXXXXX,
  "appId": XXXXX,
  "occurredAt": 1571166882934,
  "subscriptionType": "deal.propertyChange",
  "attemptNumber": 0
}

 trigger #2...

{
  "objectId": 1094503635,
  "propertyName": "dealstage",
  "propertyValue": "contact-requested",
  "changeSource": "API",
  "eventId": 1210013439,
  "subscriptionId": 1793,
  "portalId": XXXXXX,
  "appId": XXXXX,
  "occurredAt": 1571166882934,
  "subscriptionType": "deal.propertyChange",
  "attemptNumber": 0
}
0 Me gusta
3 Respuestas 3
WendyGoh
HubSpot Employee
HubSpot Employee

Webhooks firing twice

Hi @gotmike,

 

I hope all is well with you 😄

 

Our team is aware of this issue and you can keep tab of the updates on this thread: https://community.hubspot.com/t5/APIs-Integrations/App-triggers-two-webhook-events-for-one-propertyC... where my colleague Leland updated a few hours ago that we have identified the caused of the depulicated notifications and is working on a fix for this.

 

Thank you for your patience here Mike!

0 Me gusta
WendyGoh
HubSpot Employee
HubSpot Employee

Webhooks firing twice

Hi @gotmike,

 

Our team has pushed a fix for the above issue.

 

One thing to note, as Leland mentioned here

 

"Our Webhooks documentation here: https://developers.hubspot.com/docs/methods/webhooks/webhooks-overview, there is a note in the payloads section:

 

NOTE ON UNIQUENESS: We do not guarantee that you will only get a single notification for an event. Though this should be rare, it is possible that we will send you the same notification multiple times.

 

So the mass duplicate notifications should be fixed now. But it is possible for duplicates to happen, albeit rarely, and certainly nowhere near the scale that was happening here."

 

Let me know if there's any further questions on this!

0 Me gusta
gotmike
Colaborador líder

Webhooks firing twice

all seems fine now. that sounds like fine print. we have been using this for quite a while and never seen dupes.

0 Me gusta