volcengine / volc-sdk-java Goto Github PK
View Code? Open in Web Editor NEWLicense: Apache License 2.0
License: Apache License 2.0
这sdk跟官方文档好模糊,好像不匹配的样子
求参考阿里云或者腾讯云SDK的架构实现
我确实没有细看readme,但是麻烦写sdk调用示例的同学在最后一行加上translateService.destroy();销毁行吗?
volc-sdk-java/blob/main/example/src/main/java/com/volcengine/example/translate/TranslateDemo.java
In current implementation, a "content-type: application/x-www-form-urlencoded; charset=utf-8" header will be added to any GET request.
OpenApi文档地址:https://www.volcengine.com/docs/3019/100058
创建了很多守护线程没有释放
部分手机上apache报错,官方是不是要改用encodeHex呢
java.lang.NoSuchMethodError: No static method encodeHexString([B)Ljava/lang/String; in class Lorg/apache/commons/codec/binary/Hex; or its super classes (declaration of 'org.apache.commons.codec.binary.Hex' appears in /system/framework/org.apache.http.legacy.boot.jar)
at com.volcengine.helper.Utils.hashSHA256(Utils.java:45)
at com.volcengine.auth.impl.SignerV4Impl.getSignRequest(SignerV4Impl.java:100)
at com.volcengine.http.VolcengineInterceptor.intercept(VolcengineInterceptor.java:44)
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.kt:109)
at okhttp3.internal.connection.RealCall.getResponseWithInterceptorChain$okhttp(RealCall.kt:201)
at okhttp3.internal.connection.RealCall.execute(RealCall.kt:154)
at com.volcengine.service.BaseServiceImpl.makeRequest(BaseServiceImpl.java:274)
at com.volcengine.service.BaseServiceImpl.post(BaseServiceImpl.java:261)
at com.volcengine.service.visual.impl.VisualServiceImpl.poemMaterial(VisualServiceImpl.java:97)
at com.desaysv.myapplication3.TestActivity.initClient(TestActivity.java:38)
at com.desaysv.myapplication3.TestActivity.access$000(TestActivity.java:21)
at com.desaysv.myapplication3.TestActivity$1.run(TestActivity.java:70)
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.