What are you trying to do? (please be as specific as possible and include relevant screenshots, code snippets, and reproduction steps)
Hi Team Plasmic!
We are getting an error on one of our servers. I think the error might (maybe be coming from our Plasmic studio project). The issue is that we are continuously requesting a token refresh from Supabase so much so that we’ve hit an API request limit.
We aren’t getting the same issue on our dev branch which is linked to a Plasmic project. We only get this issue on staging so my hypothesis is that the request might be coming from something on our Plasmic project.
Please not that our Plasmic auth is linked to our supabase auth.
I switched branches of our plasmic project to dev and the issue went away. I then switch back to staging and so far there aren’t any more api requests.
Hi, this shouldn’t be related to our integrations, we won’t perform requests to /token for your supabase, so I would recommend you to review your own code.
@aihe_team we are facing the exact same issue! On a Next.js project though. After a while it seems the API is overloaded with requests to fetch the refresh token. Have you found a solution? I would appreciate very much if you could answer! Thanks
Oh about this. Sorry for the delay. I’m guessing this is on Supabase as well?
So, we were calling the supabase api endpoint several times.
To debug, I would suggest checking to see where you are calling: “api/plasmic-auth”. Our issue was that we were making multiple calls to api/plasmic-auth.
The requests seem to be coming from Nextjs and must be somehow related to refresh tokens turning invalid, since it always happens only after a period of time (about 2 weeks)…
Okay, then I’m afraid won’t be able to help much since our issue was related to our plasmic auth calls. My suggestion is hunting down all that make calls to your supabase endpoint.