question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Bug: stream_delete webhook didn't work

See original GitHub issue

Prerequisites

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:closed
  • Created a year ago
  • Comments:8 (6 by maintainers)

github_iconTop GitHub Comments

2reactions
gjedlicskacommented, Nov 2, 2022

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.

1reaction
gjedlicskacommented, Nov 2, 2022

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 to stream.id. This would cause a buildup of event rows in the table in the long run.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found