Bug: stream_delete webhook didn't work
See original GitHub issuePrerequisites
- I read the contribution guidelines
- I checked the documentation and found no answer.
- I checked existing issues and found no similar issue.
- I checked the community forum for related discussions and found no answer.
- I’m reporting the issue to the correct repository (see also speckle-server, speckle-sharp, specklepy, speckle-docs, and others)
What package are you referring to?
Backend
Describe the bug
Hi, I am developing a notification bot for Microsoft Teams using speckle-server’s webhook.
I found that the stream_delete
event didn’t work everytimes and it’s difficult to locate the conditions for the reproduce. Any ideas?
Issue Analytics
- State:
- Created a year ago
- Comments:8 (6 by maintainers)
Top Results From Across the Web
Manually deleted Bitbucket webhook, new/update Build ...
I've manually deleted webhooks on Bitbucket by accident, now I'm having trouble getting them back. Things I've tried that didn't work.
Read more >failed calling webhook "validate.nginx.ingress.kubernetes.io ...
Hi,. I have. The validatingwebhook service is not reachable in my private GKE cluster. I needed to open the 8443 port from the...
Read more >Webhooks - GitLab Docs
Webhooks are custom HTTP callbacks that you define. They are usually triggered by an event, such as pushing code to a repository or...
Read more >Delete Webhooks - Box Developer Documentation
Delete Webhooks. V1 webhooks cannot be fully deleted. Instead, the webhook can be set back to Developer Mode by support. Developers can also...
Read more >Webhooks Incident 11/14 - Asana Community Forum
As of 1pm 11/14 UTC, we should be back to normal. We have identified the root cause of the problem, and are working...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We can, I’ve made the taskScheduler as part of server core. So it is reusable to trigger arbitrary callbacks.
We can do
on delete set null
and clean the rows periodically, where the streamId is null.I think i’ve found the cause of the issue here.
The rows in webhook events are deleted as the streamId deletion cascades in the DB. The webhook events table is used as a task queue for the webhook service. There are times, when we get lucky, and the tick in the webhook service fires at just the right time and the event still gets picked up.
A short term solution could be to remove the foreign key constraint from the
webhooks_events
table tostream.id
. This would cause a buildup of event rows in the table in the long run.