Hacktoberfest 2026:维护者为十月标记出来的 issue,仍然开放、适合新手。 浏览 Hacktoberfest issue

Cannot connect to host - Sagemcom F@st 5359 (KPN Box 12)

未关闭
#391 4 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

评估

难度
4/5
预计耗时
3-5 天
新手友好度
30/100
Issue 类型
缺陷
描述清晰度
需要澄清
活跃度
停滞
技术栈
python
领域
api, networking

调研方向

从 quickstart 脚本和 client.login() 调用开始,使用 Python 3.13.2、package 1.4.1 以及报告中的 KPN Box 12 详细信息重现该故障。确定连接失败是由主机处理方式还是路由器 API 行为发生变化导致的;当登录成功且能够获取设备信息时即表示完成。

由索引模型根据 Issue 内容生成。

描述

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):

Image

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

Image

Image

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]

主要语言
Python
星标
141
派生
49
PR 合并指标
30 天内没有已合并 PR

环境准备

我们还没有检查这个项目的环境配置文件。先看它的 README,通用步骤见我们的新手贡献指南。

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

iMicknl/python-sagemcom-api 的其他 Issue

查看 iMicknl/python-sagemcom-api 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。