node-webot / co-wechat-api

Wechat API. Support Async Functions
Other
723 stars 170 forks source link

(node v0.12.3)no any response when yield httpx.request(url, opts) #21

Closed jaydanluo closed 8 years ago

jaydanluo commented 8 years ago

as the title said... when I used the api to get the qrcode, I get stuck at the codes below. api_common.js

var res = yield httpx.request(url, options);     
console.log(res);//couldn't get the res utill time was out

but when I changed the codes, It worked fine..

var res = yield httpx.request("www.baidu.com", options);
console.log(res);//got it!

then I used the "koa-request" instead of "httpx", both of the above worked fine! So I was wondering if I should count on the version of node?

jaydanluo commented 8 years ago

I changed the node version to 4.1.1 and got the problem soldved!