-
Notifications
You must be signed in to change notification settings - Fork 760
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Deletion commands do not work via fetch #1360
Comments
I'm also running into something similar to this, not for delete requests though. I think the issue is that the stripe lib sets content-length to 0 for empty requests and the fetch implementation by Cloudflare uses undici which doesn't allow that. Not sure if the Cloudflare fetch wrapper is doing something wrong or most other http client implementations choose to fix that for you instead of bombing like undici does, it's a bit silly IMO. I think this has to be addressed in wrangler or wherever that fetch > undici bridge lives |
Seems this has been fixed in miniflare 2.4.0 (not published to npm yet, probably will be soon): cloudflare/miniflare#193 |
Just incase stripe is ok with this fix: |
Thanks for the detailed report! We've fixed this in #1388 and will be rolling this out as part of the next release. Sorry for the trouble here. |
NodeJS version: v16.13.2
Stripe version: ^8.197.0
I am using a cloudflare worker, so if you check the webpack config here you can see it is limiting stripe to fetch and building like so:
commands like
await STRIPE.customers.deleteTaxId
andawait STRIPE.customers.del
do not work. An example error is as follows:I believe
RequestContentLengthMismatchError
is the key to this error.The text was updated successfully, but these errors were encountered: