Comments (5)
请问你是如何如何创建ossClient的?
使用方式请参考 https://help.aliyun.com/document_detail/32044.html
另,也不排除一些网络因素,客户端和服务器链接的环境等因素。
从异常栈看都是底层api的异常,也可以开启日志服务提供更多信息
from aliyun-oss-android-sdk.
crash_time:2018-06-26 10:35:05 | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
com.alibaba.sdk.android.oss.ClientException: timeout | ||||||||||||
[ErrorMessage]: timeout | ||||||||||||
at com.alibaba.sdk.android.oss.network.OSSRequestTask.call(OSSRequestTask.java:190) | ||||||||||||
at com.alibaba.sdk.android.oss.network.OSSRequestTask.call(OSSRequestTask.java:236) | ||||||||||||
at com.alibaba.sdk.android.oss.network.OSSRequestTask.call(OSSRequestTask.java:43) | ||||||||||||
at java.util.concurrent.FutureTask.run(FutureTask.java:237) | ||||||||||||
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1133) | ||||||||||||
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:607) | ||||||||||||
at java.lang.Thread.run(Thread.java:760) | ||||||||||||
Caused by: java.net.SocketTimeoutException: timeout | ||||||||||||
at okio.Okio$4.newTimeoutException(Okio.java:230) | ||||||||||||
at okio.AsyncTimeout.exit(AsyncTimeout.java:285) | ||||||||||||
at okio.AsyncTimeout$1.write(AsyncTimeout.java:184) | ||||||||||||
at okio.RealBufferedSink.flush(RealBufferedSink.java:216) | ||||||||||||
at okhttp3.internal.http1.Http1Codec$FixedLengthSink.flush(Http1Codec.java:298) | ||||||||||||
at okio.ForwardingSink.flush(ForwardingSink.java:39) | ||||||||||||
at okio.RealBufferedSink.flush(RealBufferedSink.java:218) | ||||||||||||
at com.alibaba.sdk.android.oss.network.ProgressTouchableRequestBody.writeTo(ProgressTouchableRequestBody.java:65) | ||||||||||||
at okhttp3.internal.http.CallServerInterceptor.intercept(CallServerInterceptor.java:72) | ||||||||||||
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) | ||||||||||||
at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:45) | ||||||||||||
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) | ||||||||||||
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) | ||||||||||||
at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:93) | ||||||||||||
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) | ||||||||||||
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) | ||||||||||||
at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93) | ||||||||||||
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) | ||||||||||||
at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:125) | ||||||||||||
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:147) | ||||||||||||
at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:121) | ||||||||||||
at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:200) | ||||||||||||
at okhttp3.RealCall.execute(RealCall.java:77) | ||||||||||||
at com.alibaba.sdk.android.oss.network.OSSRequestTask.call(OSSRequestTask.java:167) | ||||||||||||
... 6 more | ||||||||||||
Caused by: java.net.SocketException: Socket closed | ||||||||||||
at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:120) | ||||||||||||
at java.net.SocketOutputStream.write(SocketOutputStream.java:157) | ||||||||||||
at okio.Okio$1.write(Okio.java:79) | ||||||||||||
at okio.AsyncTimeout$1.write(AsyncTimeout.java:180) | ||||||||||||
... 27 more | ||||||||||||
------>end of log |
from aliyun-oss-android-sdk.
遇到了类似的问题,麻烦给看下? 或者有没有改进的建议? @1019272778
from aliyun-oss-android-sdk.
遇到了同样的问题。请问解决了没啊?怎么解决的?谢谢
from aliyun-oss-android-sdk.
@1019272778 ??? 出现情况不少,
from aliyun-oss-android-sdk.
Related Issues (20)
- 只有我一个觉得这个库写的十分棒吗
- 某些图片上传失败 HOT 6
- 视频上传5分钟,原视频大概400多M 通过VideoProcesser压缩后60多M上传报错 HOT 3
- 断点下载需要完善 HOT 6
- 2.9.11 版上传时无法正确的处理 http 升级 https 的响应结果 HOT 2
- CertPathValidatorException HOT 6
- 断点续传添加md5就报错400 InvalidDigest HOT 1
- 上传无法正常返回正确进度
- 断点续传情况下无法设置线程数 HOT 2
- 下载进度回调totalSize = -1 HOT 4
- sdk2.9.9-android,主动断网后上传,长时间不回调onFailure HOT 3
- 2.9.11是否支持断点下载 HOT 8
- ClientException com.alibaba.sdk.android.oss.network.OSSRequestTask in call timeout [ErrorMessage]: timeout
- 手机连接企业内网专线网络时,网络做了限制,请问需要oss的哪个域名或者ip 配置到白名单 HOT 1
- SDK存在读取SD卡数据的问题,APK上传应用市场不予通过 HOT 8
- Android P之后不允许http形式的网络请求
- 程序包com.alibaba.sdk.android.oss.xxx不存在 import com.alibaba.sdk.android.oss.xxx; HOT 3
- 为什么没有自签名模式上传文件的dome? HOT 1
- 搭配com.aliyun.video.android使用,升级至1.6.5后闪退,报错源来自本项目 HOT 2
- 2.9.13 没网的时候没有onFailure的回调,是因为挂起吗,那为什么有网的时候进度和success都行。 HOT 2
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 aliyun-oss-android-sdk.