We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
创建cloud storage的bucket时报错:
cloud storage
bucket
ApiError: The combination of locationConstraint and storageClass you provided is not supported for your project
原因是location参数设置错误,错误的代码:
location
async function main() { const buckets = await getBuckets(); logger.info(JSON.stringify(buckets)); const bucketName = 'nodejs-gcp'; await createBucket(bucketName, { regional: true, location: 'ASIA' }); }
修改后的代码:
async function main() { const buckets = await getBuckets(); logger.info(JSON.stringify(buckets)); const bucketName = 'nodejs-gcp'; await createBucket(bucketName, { regional: true, location: 'asia-east1' }); }
去GCP控制台查看:
GCP
nodejs的客户端代码的location设置的是上图中红线区域中的值。
nodejs
The text was updated successfully, but these errors were encountered:
No branches or pull requests
创建
cloud storage
的bucket
时报错:原因是
location
参数设置错误,错误的代码:修改后的代码:
去
GCP
控制台查看:nodejs
的客户端代码的location
设置的是上图中红线区域中的值。The text was updated successfully, but these errors were encountered: