ali-sdk / ali-oss

Aliyun OSS(Object Storage Service) JavaScript SDK for the Browser and Node.js
https://www.alibabacloud.com/help/doc-detail/52834.htm
MIT License
1.95k stars 576 forks source link

node 前增加了nginx后导致上传很慢,经常失败 #513

Closed phper-chen closed 5 years ago

phper-chen commented 6 years ago

[File Upload Error]The file: firmware/SNC-CAM_LENS_SL1701_V1.0.0+SNC-VPU_LENS_SC1801_V1.0.0+ALPHA_LENS_SWC11X-S_V1.0.0=V1.0.0.tgz has a failure in upload with error :{"name":"ResponseTimeoutError","requestId":1,"path":"/firmware/SNC-CAM_LENS_SL1701_V1.0.0%2BSNC-VPU_LENS_SC1801_V1.0.0%2BALPHA_LENS_SWC11X-S_V1.0.0%3DV1.0.0.tgz","status":-1,"headers":{},"res":{"status":-1,"statusCode":-1,"headers":{},"size":0,"aborted":false,"rt":60020,"keepAliveSocket":false,"requestUrls":["http://xx.oss-cn-beijing.aliyuncs.com/firmware/SNC-CAM_LENS_SL1701_V1.0.0%2BSNC-VPU_LENS_SC1801_V1.0.0%2BALPHA_LENS_SWC11X-S_V1.0.0%3DV1.0.0.tgz"],"timing":null,"remoteAddress":"","remotePort":}}

phper-chen commented 6 years ago

我直接传给node服务没问题,加了nginx后就老失败,是keep-alive问题吗?但是我设置了nginx.conf的keep-alive和timeout并没效果

PeterRao commented 6 years ago

你是客户端直接访问nginx,然后在proxy代理给node?

phper-chen commented 6 years ago

是啊 node线上不就这么搞吗 不然没法用域名啊

phper-chen commented 6 years ago

oss也太垃圾了吧 连个客服都没?

1019272778 commented 6 years ago

alioss sdk 是oss api功能的实现,是协议层的实现。并不能确保在特殊网络状况下传输一定是成功的。