-
-
Notifications
You must be signed in to change notification settings - Fork 56
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
Stripe Wrapper Rate Limit? #234
Comments
Output:
|
I see random empty results as well: I can't correlate when the empty results to a rate limit, but I didn't try as thoroughly as you. I was told by supabase support to use pg_cron to build what is in effect a materialized view of the stripe data in supabase to work around this. That seems like something that should be documented if it is the official workflow. |
@LeakedDave you might want to checkout the solution here: |
I set up the Stripe wrapper then created a database view for my stripe products. I'm loading the products on getServerSideProps. It does work, until I refresh the page 4 times fast, then all data from the foreign table returns empty for an arbitrary amount of time. Are there rate limits to the Stripe Wrapper? Should I not be querying a view to a foreign Stripe table in realtime? I'm thinking I need to pull the entire thing and just use Stripe's API directly for listing products. Their API docs say they support 100 requests per second, but the wrapper can't even do 4...
Using service role server side:
I'm thinking of using a materialized view? But only for products listings... For customer data it needs to be realtime I think. But at that point I may as well just use getStaticProps, fetch the data from their API, and then re-deploy when I make changes to my subscription pricing.
The text was updated successfully, but these errors were encountered: