Comments (4)
@heartnn 缺少了region 懒得改 直接增加了个默认的gz
from qcloud-cos-sync.
哇嘎哒
from qcloud-cos-sync.
python qCloud_COS_Sync.py
Traceback (most recent call last):
File "qCloud_COS_Sync.py", line 357, in
syncLocalToCOS(appid,secret_id,secret_key,bucket,root,subFolder)
File "qCloud_COS_Sync.py", line 310, in syncLocalToCOS
raise Exception('\nerrore')
Exception:
errore
from qcloud-cos-sync.
官方示例里省略了region,默认是sh,而我也刚好是华东区,就没注意到这点。
region_info = "sh"
# Replaced with user's region. For example, sh refers to East China region, gz refers to South China region, and tj refers to North China region
# 替换为用户的region,例如 sh 表示华东园区, gz 表示华南园区, tj 表示华北园区
cos_client = CosClient(appid, secret_id, secret_key, region=region_info)
然后这里可以是sh/gz/tj/sgp,最后那个大概是新加坡吧。
已更新版本。
from qcloud-cos-sync.
Related Issues (2)
- 新手求助,这个错误是什么意思? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from qcloud-cos-sync.