kenvix / kenvix/aTrustLogin

invalid argument: missing 'value'

Open
#4 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
158
Forks
27
PR merge metrics
No merged PRs in 30d

Description

如下报错:
```
Traceback (most recent call last):
File "/opt/atrust-autologin/main.py", line 402, in
Fire(main)
File "/usr/local/lib/python3.11/dist-packages/fire/core.py", line 135, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/fire/core.py", line 468, in _Fire
component, remaining_args = _CallAndUpdateTrace(
^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/fire/core.py", line 684, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^
File "/opt/atrust-autologin/main.py", line 376, in main
at.init()
File "/opt/atrust-autologin/main.py", line 258, in init
self.load_storage()
File "/opt/atrust-autologin/main.py", line 218, in load_storage
self.set_cli_cookie(force=False)
File "/opt/atrust-autologin/main.py", line 231, in set_cli_cookie
self.driver.add_cookie({
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 793, in add_cookie
self.execute(Command.ADD_COOKIE, {"cookie": cookie_dict})
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/webdriver.py", line 447, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.11/dist-packages/selenium/webdriver/remote/errorhandler.py", line 232, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.InvalidArgumentException: Message: invalid argument: missing 'value'
(Session info: chrome=137.0.7151.55)
```
另外我手动登录aTrust的时候好像并没有要求输入验证码,Cookies下也没有找到`tid` 和 `tid.sig`,那么`--cookie_tid` 和` --cookie_sig`还需要填吗?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in main.py at load_storage and set_cli_cookie, especially the driver.add_cookie call around the reported lines. Reproduce the login flow with the reported cookie inputs and inspect which cookie values are passed to Selenium. Done means the flow no longer raises the missing-value error and the required cookie inputs are clear.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
authentication, cli
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.