Page 1 of 1
Duplicate webhook events in sandbox
Posted: Wed Feb 28, 2024 6:41 am
by tonyo
I'm testing against the sandbox. Set up the event webhook. Went to a job, scheduled it, and then locked the schedule.
It took about 15 minutes before the expected payload came through to my webhook.
Then about another 15 minutes later the exact same payload came through again.
I'd seen this behaviour before so this time I made sure no other activity was happening to confirm if the source of duplication was simpro.
Is this expected? Does the same happen in production?
Re: Duplicate webhook events in sandbox
Posted: Thu Feb 29, 2024 11:50 pm
by PremMarkeli
Hi Tonyo,
Can you please share the details of the payload you have received as duplicates via PM. Generally its not expected to receive duplicate webhooks for the same event.
Regards.
Re: Duplicate webhook events in sandbox
Posted: Fri Mar 01, 2024 12:40 am
by tonyo
It was this payload, I didn't save the actual payload, so the schedule / job / section / costCentre IDs are all from a different payload but of the same structure.
{
"ID": "job.schedule.updated",
"build": "enterprise-SANDBOX-au.simprosuite.com",
"description": "Job schedule #3436 has been updated.",
"name": "Job schedule",
"action": "updated",
"reference": {
"companyID": 488,
"scheduleID": 3436,
"jobID": 52519,
"sectionID": 9639,
"costCenterID": 10112
},
"date_triggered": "2023-12-29T12:45:02+11:00"
}
Re: Duplicate webhook events in sandbox
Posted: Mon Mar 11, 2024 10:05 pm
by tonyo
I've been able to duplicate the problem in the sandbox, it's also appearing in production.
2 Payloads from Sandbox from a single lock schedule in the UI.
{
"ID" : "job.schedule.updated",
"build" : "enterprise-sandbox-au.simprosuite.com",
"description" : "Job schedule #3515 has been updated.",
"name" : "Job schedule",
"action" : "updated",
"reference" : {
"companyID" : 488,
"scheduleID" : 3515,
"jobID" : 52707,
"sectionID" : 9795,
"costCenterID" : 10250
},
"date_triggered" : "2024-03-12T07:35:02+11:00"
}
{
"ID" : "job.schedule.updated",
"build" : "enterprise-sandbox-au.simprosuite.com",
"description" : "Job schedule #3515 has been updated.",
"name" : "Job schedule",
"action" : "updated",
"reference" : {
"companyID" : 488,
"scheduleID" : 3515,
"jobID" : 52707,
"sectionID" : 9795,
"costCenterID" : 10250
},
"date_triggered" : "2024-03-12T07:35:12+11:00"
}
Not every Lock Schedule triggers two webhook payloads. Haven't been able to establish a pattern.
Re: Duplicate webhook events in sandbox
Posted: Thu Mar 14, 2024 1:39 am
by Sindre
Hi tonyo,
Thank you for reporting this. I have identified them in our logs.
I have created a copy of these so we can look closer at it when we are investigating why the duplicate webhooks are being triggered in some cases.
Regards
Re: Duplicate webhook events in sandbox
Posted: Mon Mar 18, 2024 3:06 am
by tonyo
Thanks Sindre, how can I track this? Do you have a system for updates on known issues?
Re: Duplicate webhook events in sandbox
Posted: Wed Mar 20, 2024 12:46 am
by Sindre
Hi Tonyo,
Unfortunately we don't have a system that shows publicly the progress and status of issues.
Regards