We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
报错log
:
Traceback (most recent call last): File "/app/data_fetcher.py", line 242, in fetch return self._fetch() File "/app/data_fetcher.py", line 267, in _fetch if self._login(driver): File "/app/data_fetcher.py", line 350, in _login self._click_button(driver, By.XPATH, '//[@id="login_box"]/div[1]/div[1]/div[2]/span') File "/app/data_fetcher.py", line 162, in _click_button click_element = driver.find_element(button_search_type, button_search_key) File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element return self.execute(Command.FIND_ELEMENT, { File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 429, in execute self.error_handler.check_response(response) File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 243, in check_response raise exception_class(message, screen, stacktrace) selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//[@id="login_box"]/div[1]/div[1]/div[2]/span"} (Session info: chrome=120.0.6099.224) Stacktrace: #0 0x560f033d1233 #1 0x560f0309b0fe #2 0x560f030e4ba6 #3 0x560f030e4cc1 #4 0x560f03132204 #5 0x560f0311244d #6 0x560f0312f680 #7 0x560f031121a3 #8 0x560f030d713e #9 0x560f030d8712 #10 0x560f033a6534 #11 0x560f033a9759 #12 0x560f033a9238 #13 0x560f033a9c05 #14 0x560f03398abf #15 0x560f033a9f8e #16 0x560f03382c86 #17 0x560f033c23e5 #18 0x560f033c25cb #19 0x560f033d07bf #20 0x7f2128b1aea7 start_thread
Traceback (most recent call last): File "/app/main.py", line 61, in run_task user_id_list, balance_list, last_daily_date_list, last_daily_usage_list, yearly_charge_list, yearly_usage_list, month_list, month_usage_list, month_charge_list = data_fetcher.fetch() TypeError: cannot unpack non-iterable NoneType object 2024-12-15 19:18:36 [ERROR ] ---- Webdriver quit abnormly, reason: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="login_box"]/div[1]/div[1]/div[2]/span"} (Session info: chrome=120.0.6099.224) Stacktrace: #0 0x560f033d1233 #1 0x560f0309b0fe #2 0x560f030e4ba6 #3 0x560f030e4cc1 #4 0x560f03132204 #5 0x560f0311244d #6 0x560f0312f680 #7 0x560f031121a3 #8 0x560f030d713e #9 0x560f030d8712 #10 0x560f033a6534 #11 0x560f033a9759 #12 0x560f033a9238 #13 0x560f033a9c05 #14 0x560f03398abf #15 0x560f033a9f8e #16 0x560f03382c86 #17 0x560f033c23e5 #18 0x560f033c25cb #19 0x560f033d07bf #20 0x7f2128b1aea7 start_thread . 5 retry times left. 2024-12-15 19:18:36 [ERROR ] ---- state-refresh task failed, reason is cannot unpack non-iterable NoneType object
The text was updated successfully, but these errors were encountered:
你手动登录国网看看你又没有绑定电表吧
Sorry, something went wrong.
有的,户号就一个,
今天更新后log
sgcc_electricity | . 5 retry times left. sgcc_electricity | 2024-12-20 17:14:38 [ERROR ] ---- state-refresh task failed, reason is cannot unpack non-iterable NoneType object sgcc_electricity | Traceback (most recent call last): sgcc_electricity | File "/app/main.py", line 61, in run_task sgcc_electricity | user_id_list, balance_list, last_daily_date_list, last_daily_usage_list, yearly_charge_list, yearly_usage_list, month_list, month_usage_list, month_charge_list = data_fetcher.fetch() sgcc_electricity | TypeError: cannot unpack non-iterable NoneType object sgcc_electricity exited with code 137
更新就行
No branches or pull requests
报错log
:
Traceback (most recent call last):
File "/app/data_fetcher.py", line 242, in fetch
return self._fetch()
File "/app/data_fetcher.py", line 267, in _fetch
if self._login(driver):
File "/app/data_fetcher.py", line 350, in _login
self._click_button(driver, By.XPATH, '//[@id="login_box"]/div[1]/div[1]/div[2]/span')
File "/app/data_fetcher.py", line 162, in _click_button
click_element = driver.find_element(button_search_type, button_search_key)
File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/webdriver.py", line 429, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.9/site-packages/selenium/webdriver/remote/errorhandler.py", line 243, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//[@id="login_box"]/div[1]/div[1]/div[2]/span"}
(Session info: chrome=120.0.6099.224)
Stacktrace:
#0 0x560f033d1233
#1 0x560f0309b0fe
#2 0x560f030e4ba6
#3 0x560f030e4cc1
#4 0x560f03132204
#5 0x560f0311244d
#6 0x560f0312f680
#7 0x560f031121a3
#8 0x560f030d713e
#9 0x560f030d8712
#10 0x560f033a6534
#11 0x560f033a9759
#12 0x560f033a9238
#13 0x560f033a9c05
#14 0x560f03398abf
#15 0x560f033a9f8e
#16 0x560f03382c86
#17 0x560f033c23e5
#18 0x560f033c25cb
#19 0x560f033d07bf
#20 0x7f2128b1aea7 start_thread
Traceback (most recent call last):
File "/app/main.py", line 61, in run_task
user_id_list, balance_list, last_daily_date_list, last_daily_usage_list, yearly_charge_list, yearly_usage_list, month_list, month_usage_list, month_charge_list = data_fetcher.fetch()
TypeError: cannot unpack non-iterable NoneType object
2024-12-15 19:18:36 [ERROR ] ---- Webdriver quit abnormly, reason: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//*[@id="login_box"]/div[1]/div[1]/div[2]/span"}
(Session info: chrome=120.0.6099.224)
Stacktrace:
#0 0x560f033d1233
#1 0x560f0309b0fe
#2 0x560f030e4ba6
#3 0x560f030e4cc1
#4 0x560f03132204
#5 0x560f0311244d
#6 0x560f0312f680
#7 0x560f031121a3
#8 0x560f030d713e
#9 0x560f030d8712
#10 0x560f033a6534
#11 0x560f033a9759
#12 0x560f033a9238
#13 0x560f033a9c05
#14 0x560f03398abf
#15 0x560f033a9f8e
#16 0x560f03382c86
#17 0x560f033c23e5
#18 0x560f033c25cb
#19 0x560f033d07bf
#20 0x7f2128b1aea7 start_thread
. 5 retry times left.
2024-12-15 19:18:36 [ERROR ] ---- state-refresh task failed, reason is cannot unpack non-iterable NoneType object
The text was updated successfully, but these errors were encountered: