## What was reported

Issue stripe/stripe-node#2231 (closed, 16 comments): ### Describe the bug

Within NestJS, when performing calls such as `StripeClient.invoices.create` or other operations with bad data, requests hang indefinitely and don't throw errors.

### To Reproduce

1. Instantiate Stripe Client with `new Stripe([API_KEY])`
2. Wrap API call in `try/catch` block
3. Call `invoices.create` method with an invalid payload (Such as the one in the snippet)
4. Call will hang indefinitely neither erroring or succeeding

### Expected behavior

When an API call fails on any non `2xx` status, it should throw an exception that can be caught by a `try/catch` block or

## The verified resolution

[Marlrus (reporter)]: Temporary workaround that unblocked the reporter: swap the HTTP client for node-fetch  -  `const httpClient = Stripe.createFetchHttpClient(fetch); const client = new Stripe(key, { httpClient });`  -  calls stopped hanging. Note: maintainers (ramya-stripe) closed the issue without an SDK-side fix, as no self-contained repro was ever provided.