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?
One option to automatically control spending is to use budget notifications to programmatically disable Cloud Billing on a project. If you prefer to set a cap on API usage to prevent incurring costs, see Capping API Usage.
To move your project to a different billing account, you must be a billing administrator and the project owner. To see the current administrators, go to the Google Cloud Platform Console, open the left side menu and select Billing.
Based on my research please find below the possible scenarios of the error message you provided:
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.
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”.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With