0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2024-12-16 20:26:19 -05:00
logto/.changeset/fast-rats-talk.md
simeng-li f76252e0d2
fix(core): fix some webhook api body status 404 bug (#6311)
* fix(core): fix some webhook api body status 404 bug

fix some webhook api body status 404 bug

* fix(core): improve the webhook trigger logic

improve the webhook trigger logic

* chore: add changeset

add changeset

* chore: update the changeset

update the changeset
2024-07-25 17:34:59 +08:00

551 B

@logto/core
patch

fix the status code 404 error in webhook events payload

Impact webhook events:

  • Role.Scopes.Updated
  • Organizations.Membership.Updates

Issue: These webhook event payloads were returning a API response status code of 404 when the webhook was triggered. Expected: A status code of 200 should be returned, as we only trigger the webhook when the request is successful. Fix: All webhook event contexts should be created and inserted into the webhook pipeline after the response body and status code are properly set.