Giter Site home page Giter Site logo

Comments (10)

qdk0901 avatar qdk0901 commented on May 27, 2024

用baidubce-cli工具也是一样的结果

from baidubce-sdk.

leeight avatar leeight commented on May 27, 2024

@qdk0901 你那边是什么错误信息呢?发出来看看

from baidubce-sdk.

leeight avatar leeight commented on May 27, 2024

我怀疑是client.createBucket(bucket)的时候出错了,因为如果你已经手工创建好 bucket 了,就不需要用 api 创建了。直接调用

client.putObjectFromFile(bucket, key, 'E:\\devel\\bae\\bce\\hello.txt');

就可以了

from baidubce-sdk.

qdk0901 avatar qdk0901 commented on May 27, 2024

@leeight
下面是baidubce-cli操作的信息

E:\devel\bae\bce>baidubce bos -c bos.ak 01e5d6a04c35477b840f57e0784e9568

E:\devel\bae\bce>baidubce bos -c bos.sk 6210dd278617490982a9009e5013e131

E:\devel\bae\bce>baidubce bos -c bos.endpoint http://bj.bcebos.com

E:\devel\bae\bce>baidubce bos --list-buckets
{ status_code: 400,
  message: '400 Bad Request',
  code: 'Http400',
  request_id: '52454655-5345-4420-4259-204e47494e58' }

from baidubce-sdk.

leeight avatar leeight commented on May 27, 2024

我本地测试了一下,暂时无法复现这个错误。

➜  ~  baidubce bos --list-buckets
No.  Name      Create Date
1    transing  2015-06-28 06:26:08

你试试重新安装 baidubce-cli 看看呢?

from baidubce-sdk.

leeight avatar leeight commented on May 27, 2024

baidubce-sdk最新的版本应该是0.0.12,如果baidubce-cli依赖的是这个版本,应该没有太大的问题。

from baidubce-sdk.

qdk0901 avatar qdk0901 commented on May 27, 2024

重装了一下baidubce-cli,是依赖0.0.12的

├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
└── [email protected]
npm verb exit [ 0, true ]
npm info ok

结果还是一样,是否跟我所在的地区有关系,我在深圳这边

from baidubce-sdk.

leeight avatar leeight commented on May 27, 2024

结果还是一样,是否跟我所在的地区有关系,我在深圳这边

跟地区没关系,现在只有bj这一个region,你加我的 Hi 聊一下看看吧:leeight

from baidubce-sdk.

leeight avatar leeight commented on May 27, 2024

貌似只是在windows下面会出现,我看看为啥

from baidubce-sdk.

leeight avatar leeight commented on May 27, 2024

不同操作系统下面slash的问题,已经处理了.

from baidubce-sdk.

Related Issues (9)

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.