google-cloud-platformstoragegcloudbucketgoogle-cloud-billing

Google Cloud Storage bucket throws error "The project to be billed is associated with a closed billing account."


I already checked my project and it has an active billing account

I am using node js

var gcloud    = require('gcloud');
var gcs = gcloud.storage({
  projectId: config.gcloud.projectid,
  keyFilename: config.gcloud.keyfilename
});
var bucket = gcs.bucket(bucketName);   
bucket.upload(filePath, fileOptions, function(err, file) {
        if (err) {        
          console.log(err);
        } else {
          console.log("success")
        }
      });

This was working before. I'm not sure why it is returning an error. Anyone have an idea?


Solution

  • Based on my research please find below the possible scenarios of the error message you provided:

    1. If you are using Cloud Platform Free Tier you may have run out of Cloud Storage Always Free usage limits. In that case, you may consider upgrading your account to a paid one to potentially resolve the issue.

    2. This error may also occur because of the Cloud Storage bucket you are trying to use does not exist. You may verify this by clicking the blue button titled “Open the Cloud Storage Browser”.

    3. If you have a paid account and the Cloud Storage bucket does exist, please open a Billing Support Request using the Billing Support Requests form provided here.