Next JS - Problem/suggestions with Functions

  • Site name: schoolhealthpulse

I’m having issues with Netlify executing multiple functions of NextJS. I’m aware that some of the functions are for rendering content, but:

  • I’m receiving almost constantly 240 executions per hour, which makes too suspicious to be user activity;
  • I don’t have enough traffic to matches the number of functions executions, our Analytics shows 0-30 users accessing the page per day (which also removes the possibility of this being a crawler accessing my pages).

It’s kind of frustrating the number of topics I’ve seen in Netlify Forums about people claiming about this exact same issue. I mean, it’s a recurrent problem, but the answer is generally “we will reach out to fix it” instead of posting the issue and how to fix it, which would be really helpful.

At the same time, there’s a lack of documentation on Netlify docs:

  • If this is a recurrent problem, we should have a page with troubleshooting available already;
  • The amount of information of the Functions log is very unuseful. We have an ID, timestamp and the memory usage. I mean, which pages triggered these functions? Which request?
  • I couldn’t find a place that would tell us how to add more logs to Netlify functions, in order to access more data, so again, there’s a lack of documentation pages here to help the users to solve the issue by themselves.

I know my topic is mixed with an issue I have to solve, but I’m also taking this opportunity to make suggestions.

My function metrics usage:

Also, this site is live for at least one year, and there was not big changes that would justify the increase of total invocations, I was never close to the limits and now I’ll probably have to change my plan for the mentioned reason.

Just as an update, the functions changed to less executions, but I’d still wanted this to be looked/replied so I can be aware of what happened.

There was no change in the website code. And there is no change in the number of visits on the website registered by our Google Analytics.

I’ve passed this to the helpdesk and you should hear back soon.