2023-01-23 16:37:27 [INFO ] ---- get all user id: ['3308301808204', '3308320046300', '3308320063053', '3308301900282']
2023-01-23 16:37:31 [INFO ] ---- Get electricity charge balance for 3308301808204 successfully, balance is 65.22 CNY.
2023-01-23 16:37:31 [INFO ] ---- Get electricity charge balance for 3308320046300 successfully, balance is 18.45 CNY.
2023-01-23 16:37:33 [INFO ] ---- Get electricity charge balance for 3308320063053 successfully, balance is -382.04 CNY.
2023-01-23 16:37:53 [ERROR ] ---- Webdriver quit abnormly, reason: Message: no such element: Unable to locate element: {"method":"xpath","selector":"//ul[@class='el-scrollbar__view el-select-dropdown__list']/li[4]"}
(Session info: headless chrome=90.0.4430.212)
Stacktrace:
#0 0x55b04f3c87f9 <unknown>
#1 0x55b04f3683b3 <unknown>
#2 0x55b04f0b0016 <unknown>
#3 0x55b04f0e481e <unknown>
#4 0x55b04f11a8fb <unknown>
#5 0x55b04f107ded <unknown>
#6 0x55b04f1189e1 <unknown>
#7 0x55b04f107c93 <unknown>
#8 0x55b04f0d9ce4 <unknown>
#9 0x55b04f0db4d2 <unknown>
#10 0x55b04f394542 <unknown>
#11 0x55b04f3a3ce7 <unknown>
#12 0x55b04f3a39e4 <unknown>
#13 0x55b04f3a813a <unknown>
#14 0x55b04f3a45b9 <unknown>
#15 0x55b04f389e00 <unknown>
#16 0x55b04f3bb5d2 <unknown>
#17 0x55b04f3bb778 <unknown>
#18 0x55b04f3d3a1f <unknown>
#19 0x7f68020e7fa3 start_thread
#20 0x7f680133e06f clone
. 1 retry times left.
Traceback (most recent call last):
File "/app/data_fetcher.py", line 30, in fetch
return self._fetch()
File "/app/data_fetcher.py", line 53, in _fetch
balance_list = self._get_electric_balances(driver, user_id_list)
File "/app/data_fetcher.py", line 136, in _get_electric_balances
self._click_button(driver, By.XPATH, f"//ul[@class='el-scrollbar__view el-select-dropdown__list']/li[{i + 1}]")
File "/app/data_fetcher.py", line 245, in _click_button
click_element = driver.find_element(button_search_type, button_search_key)
File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 856, in find_element
return self.execute(Command.FIND_ELEMENT, {
File "/usr/local/lib/python3.8/site-packages/selenium/webdriver/remote/webdriver.py", line 429, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python3.8/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":"//ul[@class='el-scrollbar__view el-select-dropdown__list']/li[4]"}
(Session info: headless chrome=90.0.4430.212)
Stacktrace:
#0 0x55b04f3c87f9 <unknown>
#1 0x55b04f3683b3 <unknown>
#2 0x55b04f0b0016 <unknown>
#3 0x55b04f0e481e <unknown>
#4 0x55b04f11a8fb <unknown>
#5 0x55b04f107ded <unknown>
#6 0x55b04f1189e1 <unknown>
#7 0x55b04f107c93 <unknown>
#8 0x55b04f0d9ce4 <unknown>
#9 0x55b04f0db4d2 <unknown>
#10 0x55b04f394542 <unknown>
#11 0x55b04f3a3ce7 <unknown>
#12 0x55b04f3a39e4 <unknown>
#13 0x55b04f3a813a <unknown>
#14 0x55b04f3a45b9 <unknown>
#15 0x55b04f389e00 <unknown>
#16 0x55b04f3bb5d2 <unknown>
#17 0x55b04f3bb778 <unknown>
#18 0x55b04f3d3a1f <unknown>
#19 0x7f68020e7fa3 start_thread
#20 0x7f680133e06f clone
2023-01-23 16:38:33 [INFO ] ---- Webdriver initialized.
2023-01-23 16:38:48 [INFO ] ---- Login successfully on https://www.95598.cn/osgweb/login
2023-01-23 16:38:50 [INFO ] ---- get all user id: ['3308301808204', '3308320046300', '3308320063053', '3308301900282']
2023-01-23 16:38:53 [INFO ] ---- Get electricity charge balance for 3308301808204 successfully, balance is 65.22 CNY.
2023-01-23 16:38:54 [INFO ] ---- Get electricity charge balance for 3308320046300 successfully, balance is 18.45 CNY.
2023-01-23 16:38:55 [INFO ] ---- Get electricity charge balance for 3308320063053 successfully, balance is -382.04 CNY.
2023-01-23 16:39:15 [ERROR ] ---- state-refresh task failed, reason is Message: no such element: Unable to locate element: {"method":"xpath","selector":"//ul[@class='el-scrollbar__view el-select-dropdown__list']/li[4]"}
(Session info: headless chrome=90.0.4430.212)
Stacktrace:
#0 0x557dad9717f9 <unknown>
#1 0x557dad9113b3 <unknown>
#2 0x557dad659016 <unknown>
#3 0x557dad68d81e <unknown>
#4 0x557dad6c38fb <unknown>
#5 0x557dad6b0ded <unknown>
#6 0x557dad6c19e1 <unknown>
#7 0x557dad6b0c93 <unknown>
#8 0x557dad682ce4 <unknown>
#9 0x557dad6844d2 <unknown>
#10 0x557dad93d542 <unknown>
#11 0x557dad94cce7 <unknown>
#12 0x557dad94c9e4 <unknown>
#13 0x557dad95113a <unknown>
#14 0x557dad94d5b9 <unknown>
#15 0x557dad932e00 <unknown>
#16 0x557dad9645d2 <unknown>
#17 0x557dad964778 <unknown>
#18 0x557dad97ca1f <unknown>
#19 0x7f990c2dafa3 start_thread
#20 0x7f990b53106f clone
楼主帮我看一下吧,似乎登录成功,有一个号获取失败,另外已经能获取到余额了,但是最终全部都没有显示成功,没有找到实体,插件重装过,系统重启过。
搭建环境:是J4125小主机,PVE下安装ha,addon直接安装的插件。
|