Webhook firing twice in a row

Instead of checking the integration log, check the Events log when it fires. It’s possible that there is only a single event being generated by the device, but multiple webhooks are firing. Some common reasons:

  1. Non-unique prefix. The event name is a prefix, so if you have two webhooks, “test” and “test2”, the event “test2” will trigger both webhooks because “test” will prefix match “test2”.

  2. Duplicate webhook. When you create one via the CLI, it creates a new one, leaving any old one in place and both will trigger.

  3. Same webhook prefix in both the device owner account and a product. Both will fire.

1 Like