Function Fails with MissingBlobsEnvironmentError Despite Correct Configuration

Hello Netlify Support Team,

I am hoping you can help me with a persistent function error on my site. I have spent a long time troubleshooting this and believe the issue may be on the platform side.

  • Site Name: fluffy-lollipop-ad3f4e.netlify.app

  • Function Name: visitor-counter

The Problem:
The function consistently fails with the following error in the logs, indicating that Netlify Blobs is not enabled for the environment:

Generated code

Error with Netlify Blobs: MissingBlobsEnvironmentError: The environment has not been configured to use Netlify Blobs.

Use code with caution.

Troubleshooting History (Everything I’ve Tried):

  1. Initial Attempt: My first version of the function used a third-party service (countapi.xyz), which failed with an ENOTFOUND error, indicating the service was down. I correctly diagnosed this and decided to switch to the more reliable Netlify Blobs.

  2. Switched to Netlify Blobs: I replaced the function’s code with the standard implementation using @netlify/blobs and getStore().

  3. Updated package.json: I updated my package.json to correctly include “@netlify/blobs”: “^7.0.0” as a dependency and removed the old node-fetch package.

  4. Configured netlify.toml: When the error first appeared, I updated my netlify.toml file to explicitly enable the blob store, as per the documentation for troubleshooting. My netlify.toml now contains:

Generated toml

[functions."*"]
  netlify_blobs = ["visitor-count-store"]

Use code with caution.Toml

  1. Verified Build & Deploys: I have redeployed the site multiple times after each of these changes. The deploy logs show that the functions are deploying successfully, and the build is completing without errors. I have also tried deploying with a cleared cache.

Despite all these steps, the MissingBlobsEnvironmentError persists. It seems that the feature is not being provisioned or enabled for my site on the backend, even with the explicit configuration in netlify.toml.

Could you please investigate my site’s configuration on your end to see why the Netlify Blobs environment is not being activated?

Thank you so much for your help. This has been a very difficult issue to solve.

Could you mention your site details and the function code?