Finally figured out why I went way over my Netlify cloud functions limit! (and had to pay $25 one-off) – It was a reeeealllly obscure and unlikely bug that was discovered in a very unlikely way

Sanju

Ah gotcha. That is a really obscure bug, good job on finding that!!

0 Likes
Ethan Author

Nothing to do with Netlify. Basically there was a bug in my code which still called the function that refreshed the access token when there was no refresh token stored. So obviously my function failed. In my frontend code I made it automatically retry fetch requests that didn't work, so for a very small amount of people it went into an endless loop of calling my cloud functions (until the page was closed) :(

0 Likes
Sanju

Nice job on figuring it out!! You mind explaining what the bug was and what was causing it? I'm trying to use Netlify's functions as well, so interested to know the bug you ran into.

0 Likes

Please sign in to leave a comment.