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

it doesn't work for me #1

Open
crixthegreat opened this issue Jun 19, 2019 · 0 comments
Open

it doesn't work for me #1

crixthegreat opened this issue Jun 19, 2019 · 0 comments

Comments

@crixthegreat
Copy link

I've checked the cookie file,
D:\study_score-master\cookie\cookie.json
It's like this:

[{'domain':` 'xuexi.cn', 'expiry': 1560931759.294422, 'httpOnly': False, 'name': 'token', 'path': '/', 'secure': False, 'value': '818e735c2e4c4c52acdc9049457382d2'}, {'domain': 'xuexi.cn', 'expiry': 1592446112.386617, 'httpOnly': False, 'name': '__UID__', 'path': '/', 'secure': False, 'value': '2342fcc0-9237-11e9-8327-c1dd3b179f3c'}]

then I got this error

Traceback (most recent call last):
  File "D:\study_score-master\spider\step_content.py", line 34, in <module>
    driver.add_cookie(i)
  File "D:\python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 894, in add_cookie
    self.execute(Command.ADD_COOKIE, {'cookie': cookie_dict})
  File "D:\python\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "D:\python\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: invalid 'expiry'
  (Session info: headless chrome=75.0.3770.100)

why is the argument 'expiry' invalid?

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