#.ib3n

1 messages · Page 1 of 1 (latest)

sacred mountainBOT
#

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
gilded briar
#

hi! what's the Invoice ID in_xxx where that happened?

gleaming otter
#

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);
}
gilded briar
#

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

gleaming otter
#

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?

gilded briar
#

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

gleaming otter
#

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?

gilded briar
#

no actually. Maybe it's a local problem like the NestJS stack doesn't like something in the library.

gleaming otter
#

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!

gilded briar