Giter Site home page Giter Site logo

Comments (4)

attmore avatar attmore commented on July 4, 2024

image
@heartnn 缺少了region 懒得改 直接增加了个默认的gz

from qcloud-cos-sync.

heartnn avatar heartnn commented on July 4, 2024

哇嘎哒

from qcloud-cos-sync.

lixuedong1024 avatar lixuedong1024 commented on July 4, 2024

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.

Erimus-Koo avatar Erimus-Koo commented on July 4, 2024

官方示例里省略了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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.