node-webot / co-wechat

Wechat for Koa
427 stars 91 forks source link

集成到eggjs 1.8,接收消息报错 Can't set headers after they are sent. #32

Closed tonychen0716 closed 7 years ago

tonychen0716 commented 7 years ago

2017-09-28 17:27:06,846 ERROR 1014 nodejs.unhandledRejectionError: Can't set headers after they are sent. at validateHeader (_http_outgoing.js:489:11) at ServerResponse.setHeader (_http_outgoing.js:496:3) at Object.set (/usr/src/app/node_modules/koa/lib/response.js:436:16) at Object.set length [as length] (/usr/src/app/node_modules/egg/app/extend/response.js:11:10) at Object.set body [as body] (/usr/src/app/node_modules/koa/lib/response.js:152:19) at Object.body (/usr/src/app/node_modules/delegates/index.js:92:31) at /usr/src/app/node_modules/co-wechat/lib/wechat.js:278:20 at at process._tickCallback (internal/process/next_tick.js:188:7) name: 'unhandledRejectionError' pid: 1014 hostname: 6f6a5b08ca67