`invoice.upcoming` is not supported

Open
#121 2 comments 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
42/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
postgresql, typescript

Research direction

Start with the README's supported-event list and trace the Stripe event-handling entry point for invoice.upcoming. Reproduce the event against the v0.32.2 Docker image, then verify that handling it no longer returns the reported PostgreSQL null-id error or a 500 response.

Written by the indexing model from the issue text.

Description

enhancement

Bug report

  • I confirm this is a bug with Supabase, not with my own application.
  • I confirm I have searched the Docs, GitHub Discussions, and Discord.

I've checked the above - but this is a bug report about the Stripe Sync Engine not Supabase...

Describe the bug

In the README, invoice.upcoming is marked as an event that is handled and supported. It is not. When an invoice.upcoming event is sent, a 500 is returned with the following error:

{
  "statusCode": 500,
  "code": "23502",
  "error": "Internal Server Error",
  "message": "null value in column "id" of relation "invoices" violates not-null constraint",
}

To Reproduce

Receive an invoice.upcoming event from Stripe.

Expected behavior

No errors.

System information

Using Docker version: supabase/stripe-sync-engine:v0.32.2

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.