iMicknl / iMicknl/python-sagemcom-api
Cannot connect to host - Sagemcom F@st 5359 (KPN Box 12)
还没有人认领这个 Issue。
- 主要语言
- Python
- 星标
- 141
- 派生
- 49
- 平均合并
- 7 小时 54 分钟
- 30 天内合并 PR
- 4
描述
## Versions
| Key | Value |
| ----------------- | ----- |
| Package version | 1.4.1 |
| Python Version | 3.13.2 |
| F@st Router Model | Sagemcom F@st 5359 |
## Describe the bug
Using the quickstart script I can't seem to set up a connection to my KPN Box 12 from my laptop.
The output:
`Cannot connect to host http:80 ssl:default [Name or service not known]`
I can ping the machine and get a reply back so it is reachable.
When I use only my IP address instead of http://192.168.2.254 I get an empty printed line(it still ends up in the client.login() Exception handler):

## To Reproduce
Steps to reproduce the behavior:
1. pip install this package and copy the quickstart script
2. fill in `http://192.168.2.254` as HOST(I've tried the IP without http:// as well and http://mymodem.kpn, didn't work either)
3. use "admin" as USERNAME and my admin's password as PASSWORD
4. tried both encryption methods, neither works even though it should be SHA512 according to the table
5. tried both with/without validating SSL cert
6. run the script
7. it runs into the connection exception while trying to client.login() and exits
## Expected behavior
I expected to connect to my KPN Box 12 and get my device info and connected devices and such.
## Screenshots


## Additional context
I'm wondering if it's not working because KPN recently rolled out their own KPN software instead of the slow "original" interface it had before that perhaps the calls or xpaths are different now, but I don't expect it.
[bug]
贡献指南
这个仓库没有索引到贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
从 quickstart 脚本和 client.login() 调用开始,使用 Python 3.13.2、package 1.4.1 以及报告中的 KPN Box 12 详细信息重现该故障。确定连接失败是由主机处理方式还是路由器 API 行为发生变化导致的;当登录成功且能够获取设备信息时即表示完成。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- python
- 领域
- api, networking
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 30/100