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

无法获取数据 #155

Open
rpeng6 opened this issue Feb 18, 2025 · 1 comment
Open

无法获取数据 #155

rpeng6 opened this issue Feb 18, 2025 · 1 comment

Comments

@rpeng6
Copy link

rpeng6 commented Feb 18, 2025

问题描述

一月9号后无法获取最新数据。

哪个版本存在此问题?

Home Assistant Addon v1.6.4

您是否手动登录国家电网网页并尝试获取数据?

未尝试手动获取数据

您使用的是哪种安装方式?

Windows Docker环境

Home Assistant core 哪个版本,安装方式,

2025.2.4

日志中是否有任何可能对我们有用的信息?

Log File
2025-02-18 07:03:48 [INFO ] ---- 当前以Homeassistant Add-on 形式运行.
2025-02-18 07:03:48 [INFO ] ---- The current repository version is v1.6.4, and the repository address is https://github.com/ARC-MX/sgcc_electricity_new.git
2025-02-18 07:03:48 [INFO ] ---- The current date is 2025-02-18 07:03:48.
2025-02-18 07:03:50 [INFO ] ---- chromium-driver version is 131
2025-02-18 07:03:50 [INFO ] ---- The current logged-in user name is 13980822542, the homeassistant address is http://192.168.50.7:8123/, and the program will be executed every day at 07:00.
2025-02-18 07:03:50 [INFO ] ---- Run job now! The next run will be at 07:00 and 19:00 every day
2025-02-18 07:03:50 [INFO ] ---- patching driver executable /usr/bin/chromedriver
2025-02-18 07:04:08 [INFO ] ---- Webdriver initialized.
2025-02-18 07:04:17 [INFO ] ---- Open LOGIN_URL:https://www.95598.cn/osgweb/login.
2025-02-18 07:04:35 [INFO ] ---- find_element 'user'.
2025-02-18 07:04:52 [INFO ] ---- Click the Agree option.
2025-02-18 07:05:08 [INFO ] ---- input_elements username : xxxx
2025-02-18 07:05:09 [INFO ] ---- input_elements password : xxxx
2025-02-18 07:05:40 [INFO ] ---- Click login button.
2025-02-18 07:05:40 [INFO ] ---- Get electricity canvas image successfully.
2025-02-18 07:05:41 [INFO ] ---- Image CaptCHA distance is 315.
2025-02-18 07:06:03 [INFO ] ---- login successed !
2025-02-18 07:06:03 [INFO ] ---- Login successfully on https://www.95598.cn/osgweb/login
2025-02-18 07:06:33 [INFO ] ---- Try to get the userid list
2025-02-18 07:07:34 [INFO ] ---- Here are a total of 2 userids, which are ['xxxx', 'xxxx'] among which ['xxxx', 'xxxx'] will be ignored.
2025-02-18 07:09:08 [INFO ] ---- The current user xxxxx data fetching failed Message: no such element: Unable to locate element: {"method":"css selector","selector":".el-input__suffix"}
(Session info: chrome=131.0.6778.204); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Stacktrace:
#0 0x556bd0f37dbe
#1 0x556bd0a5b06b
#2 0x556bd0aa2160
#3 0x556bd0aa2241
#4 0x556bd0ae8634
#5 0x556bd0ac9b0d
#6 0x556bd0ae663e
#7 0x556bd0ac9863
#8 0x556bd0a96517
#9 0x556bd0a972b2
#10 0x556bd0f0b5ba
#11 0x556bd0f0e96e
#12 0x556bd0f0e3e8
#13 0x556bd0f0edf5
#14 0x556bd0efbf92
#15 0x556bd0f0f161
#16 0x556bd0ee4e39
#17 0x556bd0f27db5
#18 0x556bd0f27f9b
#19 0x556bd0f36f15
#20 0x7fe5f34e01c4
, the next user data will be fetched.
2025-02-18 07:10:27 [INFO ] ---- The current user xxxxx data fetching failed Message: no such element: Unable to locate element: {"method":"css selector","selector":".el-input__suffix"}
(Session info: chrome=131.0.6778.204); For documentation on this error, please visit: https://www.selenium.dev/documentation/webdriver/troubleshooting/errors#no-such-element-exception
Stacktrace:
#0 0x556bd0f37dbe
#1 0x556bd0a5b06b
#2 0x556bd0aa2160
#3 0x556bd0aa2241
#4 0x556bd0ae8634
#5 0x556bd0ac9b0d
#6 0x556bd0ae663e
#7 0x556bd0ac9863
#8 0x556bd0a96517
#9 0x556bd0a972b2
#10 0x556bd0f0b5ba
#11 0x556bd0f0e96e
#12 0x556bd0f0e3e8
#13 0x556bd0f0edf5
#14 0x556bd0efbf92
#15 0x556bd0f0f161
#16 0x556bd0ee4e39
#17 0x556bd0f27db5
#18 0x556bd0f27f9b
#19 0x556bd0f36f15
#20 0x7fe5f34e01c4
, the next user data will be fetched.

附加信息

No response

@wozjs5
Copy link

wozjs5 commented Feb 21, 2025

等国网更新

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

2 participants