iMicknl / iMicknl/python-sagemcom-api

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

Abierto
#391 4 comentarios 0 reacciones 0 asignados Ver en GitHub

Nadie ha tomado este issue todavía.

Lenguaje dominante
Python
Estrellas
141
Forks
49
Merge medio
7 h 54 min
PR fusionados (30 d)
4

Descripción

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

Guía de contribución

No hay ninguna guía de contribución indexada para este repositorio

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Línea de trabajo

Comienza con el script de quickstart y la llamada a client.login(), reproduciendo el fallo con Python 3.13.2, el paquete 1.4.1 y los detalles de KPN Box 12 indicados en el informe. Determina si el fallo de conexión se debe al manejo del host o a un cambio en el comportamiento de la API del router; se considera terminado cuando el inicio de sesión tiene éxito y se puede recuperar la información del dispositivo.

Escrito por el modelo de indexación a partir del texto del issue.

Evaluación

Stack tecnológico
python
Área
api, networking
Tipo de issue
Error
Dificultad
4/5
Tiempo estimado
3-5 días
Estado de actividad
Estancado
Claridad
Necesita aclaración
Aptitud para principiantes
30/100

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.