You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
var filePath = path.resolve('./public/upload');
var filename = path.join(filePath, '1.jpeg');
var type = 'image';
var result = yield api.uploadMaterial(filename, type);
this.body = result;
已创建好api对象,执行时,返回:
Error: socket hang up
at createHangUpError (_http_client.js:203:15)
at TLSSocket.socketOnEnd (_http_client.js:288:23)
at emitNone (events.js:72:20)
at TLSSocket.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:905:12)
at doNTCallback2 (node.js:441:9)
at process._tickCallback (node.js:355:17)
测试环境:
MACOS:10.11.4
node:v4.2.2
换为express+wechat-api则无问题。
The text was updated successfully, but these errors were encountered:
测试代码:
已创建好api对象,执行时,返回:
测试环境:
MACOS:10.11.4
node:v4.2.2
换为express+wechat-api则无问题。
The text was updated successfully, but these errors were encountered: