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?
Duplicate webhook events in sandbox
Forum rules
- Check the documentation first. Before posting questions, please check the documentation to ensure it doesn't already cover what you need.
- No spam. All automated messages, advertisements, and links to competitor websites will be deleted immediately.
- Post in relevant sub-forums only. Messages posted in the wrong topic area will be removed and placed in the correct sub-forum by moderators.
- Respect other users. No flaming or abusing fellow forum members. Users who continue to post inflammatory, abusive comments will be deleted from the forum after two warnings are issued by moderators.
- Harassment. No threats or harassment of other users will be tolerated. Any instance of threatening or harassing behavior is grounds for deletion from the forums.
- Adult content. No profanity or pornography is allowed. Posts containing adult material will be deleted.
- Bandwidth. All images and signatures must be 500 x 500 pixels or smaller. Posts containing over-sized images and signatures will be removed.
- Illegal content. No re-posting of copyrighted materials or other illegal content is allowed. Any posts containing illegal content or copyrighted materials will be deleted.
-
PremMarkeli
- Posts: 148
- Joined: Tue Oct 26, 2021 3:11 am
Re: Duplicate webhook events in sandbox
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.
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.
Prem
API Developer | Simpro Software Group
API Developer | Simpro Software Group
Re: Duplicate webhook events in sandbox
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"
}
{
"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
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.
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
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
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
Sindre
API Developer | Simpro Software Group
API Developer | Simpro Software Group
Re: Duplicate webhook events in sandbox
Thanks Sindre, how can I track this? Do you have a system for updates on known issues?
Re: Duplicate webhook events in sandbox
Hi Tonyo,
Unfortunately we don't have a system that shows publicly the progress and status of issues.
Regards
Unfortunately we don't have a system that shows publicly the progress and status of issues.
Regards
Sindre
API Developer | Simpro Software Group
API Developer | Simpro Software Group
DEVELOPER CENTER