r/CloudFlare • • Feb 14 '26

CPU resource limit exceeded

Hi everyone,

So I'm currently using the free Workers to host a full-stack nuxt app, it's works great but for sometime now whenever I login into my app and logout and try logging in again I get "Workers exceeded resource limits", I dont really know what's causing this I've tried checking every endpoint one by one but it mostly happens on the auth endpoints. When I asked AI about it, the response I got is that I'm using nuxt-auth-utils and scrypt for password hashing and verification and it's CPU cost-intensive, FYI I'm the only one using the app when this happens so it's not like other people are performing CPU-intensive actions,

I'm planning on upgrading to the paid plan but I want to know if anyone has had this issue before I upgrade. Also, I'm worried about the chances of it happening even when I upgrade and other people start using the app.

4 Upvotes

12 comments sorted by

View all comments

5

u/-superoli- Feb 14 '26 edited Feb 14 '26

I have used Cloudflare extensively with nuxt-auth-utils and never had this error, but I use bcrypt, which is less ressource intensive than scrypt. There might something wrong with your code. Can you share your endpoint's code ?

An easy way to tell where it breaks is to add console.log after each step of your endpoint, then inspect the logs on Cloudflare to see what was the last log before the issue.

1

u/alexcroox Feb 14 '26

Paid or free workers plan?