#.ib3n
1 messages · Page 1 of 1 (latest)
Hello! We'll be with you shortly. Below are links to other discussions we've had with you in the past week in case you want to review that information. If your question is related to one of these previous discussions, please provide a comprehensive summary of the current state and what you need help with now. We help many users simultaneously, so a summary allows us to resolve your issue as soon as possible.
- .ib3n, 1 day ago, 20 messages
hi! what's the Invoice ID in_xxx where that happened?
in_1OXRw1IA85ZxGF7tpL0iq6Xo
It's happened for multiple other invoice IDs as well during testing
for reference, this was the for await of syntax i was using
for await (const lineItem of stripeClient.invoices.listLineItems(invoiceId, {
limit: 100,
})) {
invoiceLineItems.push(lineItem);
}
having a look but the first thing I suggest is removing limit, you don't need it and it just adds extra load to our servers and can lead to 500s
Well that's probably it then, what is the default limit, will this not cause rate limits if there are multiple requests being made in loops?
the default limit is 3, and it wouldn't cause rate limits since the requests are not really in parallel
now having said that I don't actually see any 500 errors on your account, which is what I was thinking
not really sure what getting an empty error object means, never seen that before
Yeah me neither tbh 🤔
locally and in our deployed e2e environment the error is just {}
can you see any requests from this listLineItems API for our test account?
no actually. Maybe it's a local problem like the NestJS stack doesn't like something in the library.
Yeah something in the build config or compilation perhaps? we updated our stripe API version a couple months ago now
well thanks anyway, i'll try to dig into the build
have a great day and appreciate all the help from this service!
you could also open an issue on https://github.com/stripe/stripe-node with all the context of versions/repro scripts/direct log output and I can make sure someone looks, or open a support ticket at https://support.stripe.com/?contact=true , but sorry, in the context of a Discord thread I'm not too sure what else to suggest here as it requires some deep digging