sinalogin icon indicating copy to clipboard operation
sinalogin copied to clipboard

Set Cookie Failed

Open yuxinfeng opened this issue 10 years ago • 5 comments

save_cookie have problem?

yuxinfeng avatar Sep 10 '14 15:09 yuxinfeng

show me err stack。

youyudehexie avatar Sep 10 '14 15:09 youyudehexie

perhaps your account name and passwd error

youyudehexie avatar Sep 10 '14 15:09 youyudehexie

when i call j = Request.jar(), then return j is

there hava no cookies. I also run the test.js in project. the problem is same.

2014-09-10

yuxinfeng0806

发件人:hexie [email protected] 发送时间:2014-09-10 23:18 主题:Re: [sinalogin] Set Cookie Failed (#2) 收件人:"youyudehexie/sinalogin"[email protected] 抄送:"yuxinfeng0806"[email protected]

perhaps your account name and passwd error — Reply to this email directly or view it on GitHub.

yuxinfeng avatar Sep 10 '14 15:09 yuxinfeng

it still work to me. try it agian.

var Sinalogin = require('../lib'); var request = require('request');

var account = { name: '[email protected]', passwd: 'xxx', cookiefile: '[email protected]' }

Sinalogin.weibo_login(account, function(err, loginInfo){ if(loginInfo.logined){ var j = loginInfo.j; request({url: 'http://weibo.com/youyudehexie?wvr=5&wvr=5&lf=reg', jar: j}, function (err, response, body) { console.log(body) }); } })

youyudehexie avatar Sep 10 '14 15:09 youyudehexie

this is err stack ? please help me? thank you!

2014-09-11

yuxinfeng0806

发件人:hexie [email protected] 发送时间:2014-09-10 23:33 主题:Re: [sinalogin] Set Cookie Failed (#2) 收件人:"youyudehexie/sinalogin"[email protected] 抄送:"yuxinfeng0806"[email protected]

it still work to me. try it agian. var Sinalogin = require('../lib'); var request = require('request'); var account = { name: '[email protected]', passwd: 'xxx', cookiefile: '[email protected]' } Sinalogin.weibo_login(account, function(err, loginInfo){ if(loginInfo.logined){ var j = loginInfo.j; request({url: 'http://weibo.com/youyudehexie?wvr=5&wvr=5&lf=reg', jar: j}, function (err, response, body) { console.log(body) }); }

}) — Reply to this email directly or view it on GitHub.

yuxinfeng avatar Sep 11 '14 03:09 yuxinfeng