entitlements.active_entitlement_summary.updated events silently dropped

Open
#337 1 comment 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
67/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Quiet
Tech stack
postgresql, typescript
Domain
backend, database

Research direction

Start at processEvent and trace why entitlements.active_entitlement_summary.updated is rejected before reaching handleEntitlementSummaryEvent. Compare this event with other supported webhook events, then verify the handler writes the expected data to stripe.active_entitlements and stripe.features and that the webhook no longer logs it as unsupported.

Written by the indexing model from the issue text.

Description

entitlements.active_entitlement_summary.updated events are skipped by processEvent before reaching the existing handleEntitlementSummaryEvent handler. The webhook returns 200 OK, nothing is written to stripe.active_entitlements or stripe.features.

Reproduction:

  • Subscribe a customer to a product with entitlement features attached.
  • Stripe fires the event, Supabase returns 200 OK,
  • Edge Function logs: { "event_message": "Skipping webhook evt_ID: entitlements.active_entitlement_summary.updated — object type "entitlements.active_entitlement_summary" is not supported" }

Other Stripe tables sync fine. Only active_entitlements and features stay empty.

Dominant language
TypeScript
Stars
1.1k
Forks
117
Avg merge
12m
Merged PRs (30d)
1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from stripe/sync-engine

All issues in stripe/sync-engine

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.