#dicit-ratelimit-errors
1 messages · Page 1 of 1 (latest)
Good question, yes I think there is an error code specifically for rate limits. Looking in to it
ok sounds good
And indeed that error code is rate_limit https://stripe.com/docs/error-codes#rate-limit
dicit-ratelimit-errors
Ok so how do i test for that?
we don't have tests for that. It's extremely rare that anyone hits rate limits. You have to do 100 requests per second, this is incredibly high
ok. what happens though if a rate limit gets reached? how long will my users be decommissioned for?
No one is decommissioned for anything. If you make too many requests, some will fail, that's all
https://stripe.com/docs/rate-limits is a thorough doc on this
oh so just failures, it is not like a ddos attack that affects everyone?
so it might effect 1 user who is making the requests, not all users?
who do you call a "user" in your sentence?
in my case, each user has a my account page that makes api requests. This page is one that users get redirected to when they login. So if I have millions of users, they would be redirecting to this page maybe at the same time, which is more than 100 requests per second.
So a user is a customer of yours paying for a service? Because you shouldn't just make calls to Stripe every time someone loads any page on your website
yes either paying or not paying. i check to see whether they are free/paid and open/close features that only those customers of that type have access to
well store all of that information in your database, don't hit our API at all in the case of "checking if they are free/paid" and such
ok i'll have to think the design through
Is there a way to make parts of the customer portal more obvious? Like I would love something like outstanding payment amounts to be highighted or bold as soon as they see the portal so they can pay it
Another thing is I don't want people to cancel unless they pay their outstanding amount. I have this now but not through the portal so there may be a lot of api requests
For example - here are all your outstanding payment links. If you try to click the cancel button - sorry pay your outstanding amounts first.
Not really something possible unless you build this yourself. I'd recommend chatting with our support team: https://support.stripe.com/contact to file this feedback
ok