baidubce / bce-sdk-java Goto Github PK
View Code? Open in Web Editor NEWBCE SDK for Java
Home Page: http://bce.baidu.com/sdk/index.html
License: Apache License 2.0
BCE SDK for Java
Home Page: http://bce.baidu.com/sdk/index.html
License: Apache License 2.0
BceHttpClient#execute 中的 ,在不调整日志级别的情况下,不期望SDK为我打印日志
if (logger.isInfoEnabled()) {
logger.info("Unable to execute HTTP request", e);
}
或者,com.baidubce.services.iotdmp.PlatformClient#getDevice 方法执行时,IoT平台没有 设备,SDK不要打印 exception 信息日志。抛出或者返回即可。
能不能参考一下阿里或者腾讯云的SDK啊,要啥啥没有,还各种不兼容,百度这么垃圾的吗?
目前百度云数据库RDS只有GO-SDK,还没有Java SDK,请问有没有发布计划,大概什么时候?
我直接调aws s3的sdk(1.12.37),填上bos的ak sk endpoint等信息,调用getObject会报:
"code":"MissingDateHeader","message":"Request must have a "date" or "x-bce-date" header."
可否请教下,这个header是在请求头里加吗?但是我看请求头是有Date、x-bce-debug-id、x-bce-request-id的呀
Date -> Mon, 02 Aug 2021 14:01:18 GMT
x-bce-debug-id -> 2YB0OGkOzGysWpNsosk4yAYM0wxPssQrw5Ieb6Hz5CT64leh6Nt143MdFNjdKGQthcecbpJS6cmFb1qgdJ62A==
x-bce-request-id -> e1194202-a118-4c3e-921b-8f4a62fe4b1
如果不兼容,我该怎么设置aws s3的sdk来使其兼容getObject操作呢?
如题,所有文档中请求地址的PUT /v{version}/.......
略
那么为什么吧version定义到XXXClient中呢,如BccClient,但是又发现有的Client用的却是AbstractBceClient
中的URL_PREFIX=v1
,如BosClient。
是不是可以理解为这东西是固定的,根本就没有变化
不需要加finally吗?
Quarkus是这个现在很流行的Java框架,https://www.quarkus.io
引入后,编译的时候直接报错。
> There was a failure while executing work items
> A failure occurred while executing io.quarkus.gradle.tasks.worker.CodeGenWorker
> Failed to generate sources in the QuarkusGenerateCode task for net.kaiba:ciyuan:1.0.0-SNAPSHOT due to java.lang.reflect.InvocationTargetException
请求时提示BecResponseException{httpStatus='401', requestId='null', code='AuthError', message='Bad signature or AK string and SK string do not match.'}
header提交参数有:
header.put("accept", "/");
header.put("accept-encoding","gzip, deflate");
header.put("connection", "keep-alive");
header.put("content-Length", "8");
header.put("content-Type", "application/json");
header.put("x-bce-date", DateUtils.formatAlternateIso8601Date(new Date()));
签证使用的sdk的签证
按照你的demo调用分块上传api
The JSON you provided was well-formed and valid, but not appropriate for this operation
请问具体是哪里出问题了呢 能给出具体的字段哪哪不对么
Compiling with JDK 11 results in this error:
Could not find artifact jdk.tools:jdk.tools:jar:1.6 at specified path /usr/local/openjdk-11/../lib/tools.jar
我使用了bce-java-sdk的0.10.144版本(目前最新),无法通过BccClient查询到非北京地域的云主机。原因可能是new BccClient时需要配置BccClientConfiguration,而config.setRegion()只能传Region.CN_N1这一个枚举值,在Region中没有其他地域的枚举值。
BccClientConfiguration config = new BccClientConfiguration();
config.setRegion(Region.CN_N1);//源码只有CN_N1一个枚举值,对应"bj",北京
config.setCredentials(new DefaultBceCredentials(ACCESS_KEY_ID, SECRET_ACCESS_KEY));
BccClient client = new BccClient(config);
请问通过java SDK能否查询非北京地域的云主机?how to get it?
release版本没有发布到公开的repo.maven或自己的host的repo?
在pom中添加bce-sdk-java依赖无法被解析。
调用GetTemplateResponse getTemplate(GetTemplateRequest request)的时候,需要设置x-bce-date的请求头,带不带毫秒
String bce_date = DateUtils.formatIso8601Date(new Date());
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.