webhooks icon indicating copy to clipboard operation
webhooks copied to clipboard

Two Requests Sent for Each Event

Open kmgdevelopment opened this issue 1 year ago • 0 comments

Description

I have a very basic GET webhook set up to run for Entry elements on the afterSave event. While testing, when I save an entry and then look at the Webhooks plugin Activity panel, there are two requests where I expect to be just one. Similarly my recipient app logs two incoming requests. Both have 200 response statuses so it wasn't a retry (and even if it was I don't think retries log as separate requests). This also happens with POST requests.

Screenshot 2024-08-11 at 3 00 03 PM

Steps to reproduce

  1. Create a new webhook
  2. Set the element to craft\elements\Entry
  3. Set the event to afterSave
  4. Leave the Event Filters at default
  5. Leave Debounce Key Format blank
  6. Set request type to GET and set the webhook URL
  7. Leave Custom Headers blank
  8. Open an existing entry and save

Additional info

  • Craft version: 4.11.1
  • PHP version: 8.1.29
  • Database driver & version: MySQL 8.0.36
  • Plugins & versions:

Amazon S3 2.2.1 Asset Rev 7.0.0 CKEditor 3.8.3 Element API 4.1.0 Super Table 3.0.14 Webhooks 3.1.0

kmgdevelopment avatar Aug 11 '24 22:08 kmgdevelopment