My Astro SSR function started getting an insane spike in invocations (most of which were errors)

I deployed my website functifix about a week ago, and everything seemed fine at first. No crazy invocation spikes, no absurd amount of errors on those invocations either.

January 20th I started getting a huge spike in invocations, most of which were errors. In just a couple days I nearly reached level 0’s limit of 125k requests. I received an email that I reached 75% of my limit and this is when I started investigating but I found nothing so far… Luckily I was able to downgrade to the free tier to not incur any costs. The problem here is that I have another static site that will also be “paused” if my account has reached that limit. (I have less than 5k requests left, so chances are my sites will be paused because of this)

When I check the logs I don’t get any wiser:

Jan 23, 11:30:19 AM: 9191c39a ERROR  10:30:19 [ERROR] OperationError: The operation failed for an operation-specific reasonJan 23, 11:30:19 AM: 9191c39a ERROR      at new DOMException (node:internal/per_context/domexception:53:5)Jan 23, 11:30:19 AM: 9191c39a ERROR      at __node_internal_ (node:internal/util:670:10)Jan 23, 11:30:19 AM: 9191c39a ERROR      at AESCipherJob.onDone (node:internal/crypto/util:430:19)Jan 23, 11:30:19 AM: 9191c39a ERROR      at AESCipherJob.callbackTrampoline (node:internal/async_hooks:128:17)

At first I thought this might have happened because of my error tracking with Sentry, it was triggering locally too. So I thought maybe it’s using the SSR adapter locally, but triggering 100k+ invocations locally? I don’t know about that… Anyway, I disabled Sentry this morning to see if it would fix the problem but alas.

The next thing I tried was disabling my analytics I have set up with Plausible which might be invoking too many times. Again the errors continued. The spike isn’t as crazy as a couple of days ago but still it’s way too high for the amount of users I’m having.

I would greatly appreciate if anyone could help me out on this one. It has honestly put a damper on the release of my website.

I’ve sent your request to our helpdesk, we’ll follow up via email shortly.

1 Like