iMicknl / iMicknl/python-sagemcom-api
Cannot connect to host - Sagemcom F@st 5359 (KPN Box 12)
Personne n'a encore pris cette issue.
- Langage dominant
- Python
- Étoiles
- 141
- Forks
- 49
- Merge moyen
- 7 h 54 min
- PR mergées (30 j)
- 4
Description
## 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]
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Piste de recherche
Commencez par le script de quickstart et l’appel à client.login(), en reproduisant l’échec avec Python 3.13.2, le package 1.4.1 et les détails de KPN Box 12 indiqués dans le rapport. Déterminez si l’échec de connexion est dû à la gestion de l’hôte ou à une modification du comportement de l’API du routeur ; le travail est terminé lorsque la connexion réussit et que les informations sur l’appareil peuvent être récupérées.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Évaluation
- Stack technique
- python
- Domaine
- api, networking
- Type d'issue
- Bug
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Activité
- À l'abandon
- Clarté
- À clarifier
- Accessibilité débutants
- 30/100