iMicknl / iMicknl/python-sagemcom-api

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

Ouverte
#391 4 commentaires 0 réactions 0 personnes assignées Voir sur GitHub

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

![Image](https://github.com/user-attachments/assets/dccc621b-48e1-4f27-a71c-a67e69b3e87e)

## 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](https://github.com/user-attachments/assets/4f491722-4bd1-46e1-80b2-a481c995e4e9)

![Image](https://github.com/user-attachments/assets/6db2bea1-884c-4b58-8a61-c9a26f0beff5)

## 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

  1. Lisez l'issue en entier, puis le guide de contribution du projet.
  2. Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
  3. Forkez le dépôt et travaillez sur une branche.
  4. 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

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.