I'm receiving two similar events in my server. I'm sendig a response with status 201, but it doesn't solve the problem (after that, i was receiving 4 similar events). The only difference between the events are two fields in the headers (X-Adsk-Delivery-Id and X-Forwarded-For). The events are received exactly at the same moment (less than a second of difference). It's by default launching two events?
Thank you for your help.
Did you send a 2xx response immediately when you receive the callbacks?
Our service would send another callback if it doesn't get a response within 6 seconds so if you got other workflows to finish before sending responses be sure to process them asynchronously.
See here for details:
Webhooks guarantees at least once delivery. When the event occurs, the webhooks service sends a payload to the callback URL as an HTTP POST request. The webhook service expects a 2xx response to the HTTP POST request. The response must be received within 6 seconds. A non-2xx response is considered an error. In the event of an error, the webhook service will retry immediately, in 15 minutes, and 45 minutes thereafter. The webhook service retries for 48 hours and disables the webhook if the callback does not succeed during this time. You may need to reconfigure your webhooks if they are disabled.