主题 : 腾讯云工具类QcoscloudClient
级别: 白丁
UID: 142628
积分:73 加为好友
威望: 10 精华: 0
主题:13 回复:67
注册时间:2022-10-13
在线时长:0
1#   发表于:2022-10-17 18:19:27  IP:221.147.*.*
腾讯云的工具类
<cos_api.version>4.6</cos_api.version>
API接口是不是过于老了,设置之后无法上传,返回如下路劲
http://ap-beijing.file.myqcloud.com/files/v2/1111111111111/xxxxxxxxxxxxx/u/cms/www/202210/17173928r11a.png

正常路劲
https://xxxxxxxxxxxxx.cos.ap-beijing.myqcloud.com/u/cms/www/202210/17173928r11a.png


请问是什么原因
级别: 总版主
UID: 10736
积分:148385 加为好友
威望: 205 精华: 42
主题:287 回复:126144
注册时间:2010-09-08
在线时长:15.8
2#   发表于:2022-10-17 19:19:45  IP:125.12.*.*
看看上传的时候tomcat日志是否有报错呢
路漫漫其修远兮,吾将上下而求索!
级别: 白丁
UID: 142628
积分:73 加为好友
威望: 10 精华: 0
主题:13 回复:67
注册时间:2022-10-13
在线时长:0
3#   发表于:2022-10-18 09:53:30  IP:221.147.*.*
回复第2楼

2022-10-18 09:50:16.244 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}->http://ap-beijing.file.myqcloud.com:80: Software caused connection abort: socket write error 
2022-10-18 09:50:16.244 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - Retrying request to {}->http://ap-beijing.file.myqcloud.com:80 
2022-10-18 09:50:35.198 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}->http://ap-beijing.file.myqcloud.com:80: Software caused connection abort: socket write error 
2022-10-18 09:50:35.198 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - Retrying request to {}->http://ap-beijing.file.myqcloud.com:80 
2022-10-18 09:50:35.244 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}->http://ap-beijing.file.myqcloud.com:80: Connection reset by peer: socket write error 
2022-10-18 09:50:35.244 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - Retrying request to {}->http://ap-beijing.file.myqcloud.com:80 
2022-10-18 09:50:54.253 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}->http://ap-beijing.file.myqcloud.com:80: Software caused connection abort: socket write error 
2022-10-18 09:50:54.253 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - Retrying request to {}->http://ap-beijing.file.myqcloud.com:80 
2022-10-18 09:50:54.286 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}->http://ap-beijing.file.myqcloud.com:80: Connection reset by peer: socket write error 
2022-10-18 09:50:54.286 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - Retrying request to {}->http://ap-beijing.file.myqcloud.com:80 
2022-10-18 09:50:54.316 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}->http://ap-beijing.file.myqcloud.com:80: Connection reset by peer: socket write error 
2022-10-18 09:50:54.316 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - Retrying request to {}->http://ap-beijing.file.myqcloud.com:80 
2022-10-18 09:51:13.309 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}->http://ap-beijing.file.myqcloud.com:80: Software caused connection abort: socket write error 
2022-10-18 09:51:13.309 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - Retrying request to {}->http://ap-beijing.file.myqcloud.com:80 
2022-10-18 09:51:13.338 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}->http://ap-beijing.file.myqcloud.com:80: Connection reset by peer: socket write error 
2022-10-18 09:51:13.338 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - Retrying request to {}->http://ap-beijing.file.myqcloud.com:80 
2022-10-18 09:51:13.367 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - I/O exception (java.net.SocketException) caught when processing request to {}->http://ap-beijing.file.myqcloud.com:80: Connection reset by peer: socket write error 
2022-10-18 09:51:13.367 [http-nio-8083-exec-3] INFO  org.apache.http.impl.execchain.RetryExec - Retrying request to {}->http://ap-beijing.file.myqcloud.com:80 
2022-10-18 09:51:13.396 [http-nio-8083-exec-3] ERROR com.qcloud.cos.http.DefaultCosHttpClient - HttpRequest:url:http://ap-beijing.file.myqcloud.com/files/v2/1111111111111/xxxxxxxxxxxxx/u/cms/www/202210/18094948wqyh.png, method:POST, ConentType:multipart/form-data
Headers:
级别: 白丁
UID: 142628
积分:73 加为好友
威望: 10 精华: 0
主题:13 回复:67
注册时间:2022-10-13
在线时长:0
4#   发表于:2022-10-18 09:56:06  IP:221.147.*.*
回复第2楼2022-10-18 09:55:24.614 [http-nio-8083-exec-3] ERROR com.jeecms.resource.service.impl.UploadService - 未知上传错误  
2022-10-18 09:55:24.614 [HikariCP housekeeper] WARN  com.zaxxer.hikari.pool.HikariPool - HikariCP - Thread starvation or clock leap detected (housekeeper delta=4m14s367ms451µs900ns). 
2022-10-18 09:55:24.619 [http-nio-8083-exec-3] ERROR com.jeecms.common.exception.GlobalExceptionHandler - file error ! 
2022-10-18 09:55:24.676 [asyncServiceExecutor-1] INFO  com.jeecms.system.service.impl.SysLogServiceImpl - refresh cache log to DB: 0 
2022-10-18 09:55:25.668 [http-nio-8083-exec-2] ERROR c.j.front.controller.ExceptionHandlerController - nullRequested path /jeecms/index with result null 
2022-10-18 09:55:27.620 [Replication Thread] WARN  n.s.e.distribution.RMIAsynchronousCacheReplicator - 2 messages were discarded on replicate due to reclamation of SoftReferences by the VM. Consider increasing the maximum heap size and/or setting the starting heap size to a higher value. 
级别: 白丁
UID: 142628
积分:73 加为好友
威望: 10 精华: 0
主题:13 回复:67
注册时间:2022-10-13
在线时长:0
5#   发表于:2022-10-18 09:56:51  IP:221.147.*.*
回复第2楼

跟腾讯云现在的API完全不一样,或者您这边提供一下,您这边看的API地址
级别: 总版主
UID: 10736
积分:148385 加为好友
威望: 205 精华: 42
主题:287 回复:126144
注册时间:2010-09-08
在线时长:15.8
6#   发表于:2022-10-18 10:42:30  IP:125.12.*.*
收到我找下同事测试下之前的腾讯云oss
路漫漫其修远兮,吾将上下而求索!
级别: 白丁
UID: 142628
积分:73 加为好友
威望: 10 精华: 0
主题:13 回复:67
注册时间:2022-10-13
在线时长:0
7#   发表于:2022-10-18 10:57:20  IP:221.147.*.*
回复第6楼好的
级别: 总版主
UID: 10736
积分:148385 加为好友
威望: 205 精华: 42
主题:287 回复:126144
注册时间:2010-09-08
在线时长:15.8
8#   发表于:2022-10-20 08:50:42  IP:125.3.*.*
路漫漫其修远兮,吾将上下而求索!
1 共1页