You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm sorry you experienced this, @mtilda ! In general, we recommend making your webhook filter as specific as possible. Sanity datasets include some internal documents, and also metadata for things like assets, AI Assist commands, tasks, and so on. I see you have some associated feature requests that look very valuable, and I'll respond to those as well.
We're happy to have a look at the way you've configured your webhooks and offer advice, but this may be expected behavior.
Describe the bug
sanity dataset import
triggers webhooks excessively.To Reproduce
Steps to reproduce the behavior:
sanity dataset export
.sanity dataset import
(with the--replace
flag to overwrite existing documents)Expected behavior
Data should import and then trigger one webhook call.
Observed behavior
My webhook triggered 45 times in rapid (milliseconds) succession.
Impact
This has caused me to hit a rate limit with the service receiving the webhook, resulting in temporary denial of service.
Which versions of Sanity are you using?
Run
sanity versions
in the terminal and copy-paste the result here.What operating system are you using?
Which versions of Node.js / npm are you running?
Run
npm -v && node -v
in the terminal and copy-paste the result here.The text was updated successfully, but these errors were encountered: