stripe-sync-engine icon indicating copy to clipboard operation
stripe-sync-engine copied to clipboard

Test webhooks cannot call "customer.created"

Open gokaykucuk opened this issue 3 years ago • 3 comments

Bug report

Describe the bug

After setting up a stripe account, if the webhooks are added in "test mode", webhooks seems like missing the field next_invoice_sequence which creates the following error;

Missing value for statement.\nnext_invoice_sequence not provided for statement

To Reproduce

Steps to reproduce the behavior, please provide code snippets or a repository:

  1. Create a webhook in test mode
  2. Enable it and trigger a test webhook or go through a payment in "test mode".
  3. See error

Expected behavior

No 500's are returned and data is inserted to PostgreSQL.

gokaykucuk avatar Dec 30 '21 15:12 gokaykucuk

customer.updated also has the same issue, while invoice webhooks fail withnext_invoice_sequence

gokaykucuk avatar Dec 30 '21 15:12 gokaykucuk

Hmm I wonder if I broke something with my latest release https://github.com/supabase/stripe-sync-engine/compare/v0.1.4...v0.2.0

kiwicopple avatar Dec 30 '21 16:12 kiwicopple

@kiwicopple doesn't seem those changes are related to this issue. Was it working under "test mode"? I was thinking maybe this parameter is missing from "test mode"?

gokaykucuk avatar Dec 30 '21 17:12 gokaykucuk

Hey. I wonder is this problem get handled? Seem it found a year before

mikewongblinx avatar Jan 26 '23 00:01 mikewongblinx

I'll close this for now. If anyone else encounters this error, please let us know

kiwicopple avatar Feb 08 '23 16:02 kiwicopple

I found the same error with both the test and production versions of Stripe

epavanello avatar Aug 05 '23 17:08 epavanello

same issue here

psteinroe avatar Sep 04 '23 10:09 psteinroe

:tada: This issue has been resolved in version 0.20.2 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket:

github-actions[bot] avatar Sep 04 '23 10:09 github-actions[bot]