iMicknl / iMicknl/python-sagemcom-api

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

Offen
#391 4 Kommentare 0 Reaktionen 0 zugewiesene Personen Auf GitHub ansehen

Dieses Issue hat noch niemand übernommen.

Vorherrschende Sprache
Python
Sterne
141
Forks
49
Ø Merge
7 Std. 54 Min.
Gemergte PRs (30 T.)
4

Beschreibung

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

Beitragsleitfaden

Für dieses Repository ist kein Beitragsleitfaden indexiert

Erste Schritte

  1. Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
  2. Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
  3. Forke das Repository und arbeite in einem Branch.
  4. Öffne einen Pull Request, der die Issue-Nummer nennt.

Rechercherichtung

Beginnen Sie mit dem Quickstart-Skript und dem Aufruf von client.login(), und reproduzieren Sie den Fehler mit Python 3.13.2, Paket 1.4.1 und den im Bericht genannten Details zur KPN Box 12. Ermitteln Sie, ob der Verbindungsfehler durch die Host-Verarbeitung oder ein geändertes Router-API-Verhalten verursacht wird; als abgeschlossen gilt die Aufgabe, wenn der Login erfolgreich ist und Geräteinformationen abgerufen werden können.

Vom Indexierungsmodell aus dem Issue-Text verfasst.

Bewertung

Tech-Stack
python
Bereich
api, networking
Issue-Typ
Bug
Schwierigkeit
4/5
Geschätzter Aufwand
3-5 Tage
Aktivitätsstatus
Veraltet
Klarheit
Muss geklärt werden
Anfängerfreundlichkeit
30/100

Neue Issues direkt in Ihr Postfach

Eine kurze Übersicht über anfängerfreundliche GitHub-Issues.