I am experiencing an issue with deploying a Netlify Function on my site. The function code builds and bundles correctly according to the build logs, but the deployment step consistently reports that 0 new functions were uploaded.
Site Name: verdant-salmiakki-60ef04
Function File: netlify/functions/quiz_submit.ts
Observed Problem: In my deployment logs, the “Functions bundling” section confirms that quiz_submit.ts is packaged into quiz_submit.zip. However, immediately following this, the “Deploy site” section states 0 new function(s) to upload.
This behavior persists even after attempting deploys with cleared cache.
Because the function is not being deployed, accessing its endpoint (/.netlify/functions/quiz_submit) on the live site results in a 500 Internal Server Error.
Could you please investigate why my bundled function file is not being included in the deployment upload step for this site?
I think a key part of what it says is new function(s)
What happens when you change the function code and deploy again?
Or when you add a new function file that didn’t previously exist?
In general, Netlify’s systems don’t redeploy things that they determine haven’t changed between deploys.
As I understand it, clearing the cache clears the build cache.
It does not delete previously deployed files.
This would indicate to me that it is deployed, but that it’s encountering an error.
Check your Function logs to see what error: https://docs.netlify.com/functions/logs/
Hey thanx…
it solved and then new problems arised…
Okay, I understand. Let’s get that message drafted for Netlify support.
Hi Netlify Support,
I am encountering a persistent issue with deploying a Netlify Function on my site where the function builds successfully but does not appear to be uploaded to the server during the deployment process.
Site Name:verdant-salmiakki-60ef04
Function File:netlify/functions/quiz_submit.ts
Problem Description: In my build logs, the “Functions bundling” step successfully packages the quiz_submit.ts file into a .zip archive. However, in the subsequent “Deploy site” section of the same log, it consistently states 0 new function(s) to upload.
This behavior prevents the function from being available on the live site, resulting in 404 Not Found or 500 Internal Server Error when accessing the function endpoint (/.netlify/functions/quiz_submit). This issue occurs even after attempting deploys with clear cache options.
The function code itself has been reviewed and appears correct for its intended purpose (logging data to Google Sheets). The problem seems to be specifically with the function upload step in the deployment pipeline.
Function log
Real-time
Filter by request ID, message, log level
May 12, 08:17:58 AM: Invalid Request Message
Could you please investigate why the bundled function file is not being included in the deployment upload process for my site?
@MariadeBahia Gemini, most of this information is a repeat of previous information and does not assist.
Please keep communication to a minimum and provide only new information.
Repeating information does not help an adequately competent human to assist you, it just makes the information more difficult to parse and frankly wastes my time.
Additionally, these statements are highly likely to be wrong:
The function code itself has been reviewed and appears correct for its intended purpose (logging data to Google Sheets). The problem seems to be specifically with the function upload step in the deployment pipeline.
The issue remains most likely to be either:
The function code itself (this will be proved by checking the function logs)
or
The Build Settings, (for example, perhaps the ‘Functions directory’ is set wrong)
If this is an attempt to provide information from the ‘Functions log’ it is truncated and useless…
If you want a human to provide suggestions/recommendations, you need to provide useful information.
Provide:
A full build log output
Full functions log output
The current build settings
A public repository for the project
etc
@MariadeBahia If you provide better information to the AI, perhaps it might solve it too.
If there was a wider issue with Netlify’s system, I’d expect to see more reports of it on the forum.
Since there are no others, it’s much more likely you’re encountering an issue specific to your project.
The Scope of Support means they won’t help with code issues
I don’t work for Netlify, I help primarily to prevent other users “getting stuck”
At this stage I’m interested in getting you to check and double-check things.
Challenge your assumptions and don’t believe AI responses at their face value.
I don’t provide free consultancy, so I’m not interested in helping to drive the AI for you via this forum.
You can see in the functions bundling that your function is found and bundled.
So the issue definitely isn’t as you originally raised:
It is bundled, it is deployed.
As I previously mentioned, it likely shows "0 new function(s) to upload" because the function is unchanged, and thus there are “no NEW functions to upload”.
We also have confirmation that it exists, because it’s generating errors as seen in the log, (which are to be expected since you’re seeing 500 error responses).
Specifically this appears to be your primary error:
May 12, 12:34:42 PM: c265cbf4 ERROR
Error processing quiz submission:
Error: The incoming JSON object does not contain a client_email field
at _JWT.fromJSON (/var/task/netlify/functions/quiz_submit.js:10911:17)
at GoogleAuth.fromJSON (/var/task/netlify/functions/quiz_submit.js:13468:18)
at GoogleAuth._cacheClientFromJSON (/var/task/netlify/functions/quiz_submit.js:13483:29)
at GoogleAuth._GoogleAuth_determineClient2 (/var/task/netlify/functions/quiz_submit.js:13787:21)
at GoogleAuth.getClient (/var/task/netlify/functions/quiz_submit.js:13667:223)
at GoogleAuth.request (/var/task/netlify/functions/quiz_submit.js:13722:35)
at createAPIRequestAsync (/var/task/netlify/functions/quiz_submit.js:17276:29)
at async Runtime.handler (/var/task/netlify/functions/quiz_submit.js:586995:5)
Your code references client_email here:
Do you have the necessary environment variables set in Netlify?