Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cookies的bug #58

Closed
zoey999 opened this issue May 12, 2016 · 2 comments
Closed

cookies的bug #58

zoey999 opened this issue May 12, 2016 · 2 comments

Comments

@zoey999
Copy link

zoey999 commented May 12, 2016

关于cookies的bug

bug描述:

修改代码使得在yhtrader.py的request函数里打印log:

def request(self, params):
        url = self.trade_prefix + params['service_jsp']
        print ("seeeeeeeeeeeeeeeeee: cookies={}".format(self.cookie))
        .......
        ....
        ..

会发现,cookies=None . 所有的后端,比如yjbtrader.py等,都是一样。

顺着查找(搜索self.cookie),发现token函数没有被调用. 似乎应该算bug。。

@zoey999
Copy link
Author

zoey999 commented May 12, 2016

怀疑是不是因为这个导致偶发性掉线。

@zoey999
Copy link
Author

zoey999 commented May 12, 2016

cookie 是最开始的版本遗留的,当时是填的sessionid

@zoey999 zoey999 closed this as completed May 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant