(Cloudflare) Workers CPU resources exceeded
Hello everyone, I have a web app made using SvelteKit and am facing this issue where my cpu resources are being exceeded while signing in or up, i.e the limit of 10ms CPU time is not enough for these auth purposes, now is there any way to avoid this or only upgrading to paid plans can make it avoid this problem? I have two alternatives or workaround I can use:
- Create a different server for this sole purpose, i.e a deno server which signs in, parses the cookie sends back to our main app
- Migrate to something like Vercel.
Is the first solution viable and vulnerable to security concerns?
Currently this is the code am using:
Help would be really appreciated, Thanks.
5 Replies
Even using client auth doesnt solve this issue.
This happens only while signing in with email and password method
Hey @SheldonFromBBT , were you able to find a fix for this? I'm running into the same thing ATM.
Unfortunately no, I have migrated to using just oauth with google.
I have stopped using email and password authentication because of this issue, there seems no actual fix due to its nature, upgrading to paid tier might only be the viable solution.
I'm actually running on a Cloudflare business account, and still get the error.
Then this issue shouldn't be taking place, IMO
Try to use their cpu limit configuration, what I know is you can set some higher time limit for paid tiers, take a look at that
Or just contact their support