iMicknl / iMicknl/python-sagemcom-api
Cannot connect to host - Sagemcom F@st 5359 (KPN Box 12)
Nessuno ha ancora preso questa issue.
- Lingua principale
- Python
- Stelle
- 141
- Fork
- 49
- Merge medio
- 7h 54m
- PR unite (30g)
- 4
Descrizione
## 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]
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Direzione di ricerca
Inizia con lo script di quickstart e la chiamata a client.login(), riproducendo il problema con Python 3.13.2, il package 1.4.1 e i dettagli di KPN Box 12 riportati nel report. Determina se il problema di connessione è causato dalla gestione dell’host o da un cambiamento nel comportamento dell’API del router; il lavoro è completato quando il login ha esito positivo e è possibile recuperare le informazioni sul dispositivo.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- python
- Ambito
- api, networking
- Tipo di issue
- Bug
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 30/100