搭建code-push-server本地服务器时,服务器端上传资源到七牛,已经上传成功了,为什么响应超时?

新手上路,请多包涵

[2019-03-23T12:08:57.464] [ERROR] cps:utils:common - uploadFileToQiniu putFile: { ResponseTimeoutError: Response timeout for 120000ms, POST http://upload-z2.qiniup.com -1 (connected: true, keepalive socket: false)
headers: {}

at Timeout._onTimeout (/root/code-push-server/node_modules/urllib/lib/urllib.js:734:15)
at ontimeout (timers.js:386:11)
at tryOnTimeout (timers.js:250:5)
at Timer.listOnTimeout (timers.js:214:5)

name: 'ResponseTimeoutError',
requestId: 6,
data: undefined,
path: '/',
status: -1,
headers: {},
res:
{ status: -1,

 statusCode: -1,
 headers: {},
 size: 0,
 aborted: false,
 rt: 120046,
 keepAliveSocket: false,
 data: undefined,
 requestUrls: [ 'http://upload-z2.qiniup.com' ],
 timing: null,
 remoteAddress: '49.79.238.9',
 remotePort: 80 } }
 
 这是服务器的日志
阅读 2.8k
1 个回答

我也遇到这个问题,上传视频大于30m, 我尝试了三种上传方式都不成功.请问最后是如何解决的?

logo
七牛云问答
子站问答
访问
宣传栏