We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 062d73c commit 3e4dc64Copy full SHA for 3e4dc64
src/modules/cos/index.ts
@@ -130,6 +130,13 @@ export default class Cos {
130
const e = convertCosError(err);
131
if (e.code === 'BucketAlreadyExists' || e.code === 'BucketAlreadyOwnedByYou') {
132
console.log(`Bucket ${inputs.bucket} already exist.`);
133
+ } else if (e.code === 'TooManyBuckets') {
134
+ // TODO: 存储桶太多了,兼容特殊大账号情况,暂时不抛出错误
135
+ const exist = await this.isBucketExist(inputs.bucket!);
136
+ if (exist) {
137
+ console.log(`Bucket ${inputs.bucket} already exist.`);
138
+ return true;
139
+ }
140
} else {
141
// 失败重试 1 次,如果再次出错,正常处理
142
if (this.retryTimes < this.maxRetryTimes) {
0 commit comments