uploadFile Fail:unexpected end of stream
利用wx.uploadFile API 将图片上传至自己的服务器,结果报错: [代码]uploadFile:fail unexpected end of stream[代码]真机调试的结果如下: [代码][publib]:1 uploadFile:fail unexpected end of stream[代码][代码]Qe @ [publib]:1[代码][代码](anonymous) @ [publib]:1[代码][代码]Bt.emit @ [publib]:1[代码][代码]ji @ [publib]:1[代码][代码](anonymous) @ [publib]:1[代码][代码](anonymous) @ [publib]:1[代码][代码]S @ [publib]:1[代码][代码]value @ [publib]:1208[代码][代码](anonymous) @ [VM 44]:1[代码][代码]Script.runInContext @ vm.js:59[代码][代码]runInContext @ vm.js:120[代码][代码]handleEvaluateJavascript @ [publib]:588[代码][代码]handleProcessMessage @ [publib]:1233[代码][代码]ws.on @ [publib]:1458[代码][代码]emitOne @ events.js:115[代码][代码]emit @ events.js:210[代码][代码]_receiver.onmessage @ C:\Users\MAXGU\AppData\Roaming\Tencent\微信web开发者工具\package.nw\node_modules\ws\lib\WebSocket.js:146[代码][代码]dataMessage @ C:\Users\MAXGU\AppData\Roaming\Tencent\微信web开发者工具\package.nw\node_modules\ws\lib\Receiver.js:389[代码][代码]getData @ C:\Users\MAXGU\AppData\Roaming\Tencent\微信web开发者工具\package.nw\node_modules\ws\lib\Receiver.js:330[代码][代码]startLoop @ C:\Users\MAXGU\AppData\Roaming\Tencent\微信web开发者工具\package.nw\node_modules\ws\lib\Receiver.js:165[代码][代码]add @ C:\Users\MAXGU\AppData\Roaming\Tencent\微信web开发者工具\package.nw\node_modules\ws\lib\Receiver.js:139[代码][代码]_ultron.on @ C:\Users\MAXGU\AppData\Roaming\Tencent\微信web开发者工具\package.nw\node_modules\ws\lib\WebSocket.js:142[代码][代码]emitOne @ events.js:115[代码][代码]emit @ events.js:210[代码][代码]addChunk @ _stream_readable.js:263[代码][代码]readableAddChunk @ _stream_readable.js:250[代码][代码]Readable.push @ _stream_readable.js:208[代码][代码]onread @ net.js:595[代码]服务器用Flask做的,服务器本身应该没问题,之前开发的另一款小程序,调用自己做的web api,一切正常,但这一次新开发的微信小程序调用同样的web api,结果出现上述问题