iMicknl / iMicknl/python-sagemcom-api

[FAST3896] Fail to login with a "400 - Bad Request"

Open
#486 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
141
Forks
49
Avg merge
7h 54m
Merged PRs (30d)
4

Description

Versions

Key Value
Package version 1.4.3
Python Version 3.14.4
F@st Router Model FAST3896

Describe the bug

Trying the example code of the README.md fails to login to the modem it fails with "400 - Bad Request"

Manufacturer: "Sagemcom"
​ManufacturerOUI: "6CBAB8"
​ModelName: "FAST3896_TLC"
ModelNumber: "FAST3896"​
ProductClass: "FAST3896"

To Reproduce

Steps to reproduce the behavior:

  1. Run the code of the example with the proper data
  2. It outputs:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
          "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>400 - Bad Request</title>
  </head>
  <body>
    <h1>400 - Bad Request</h1>
    <p>Request need a non empty 'req' part</p>
  </body>
</html>

Expected behavior

Login succesful

Additional context

Add any other context about the problem here.

[bug]

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start with the README.md example and reproduce the login against the reported FAST3896 router using the listed package and Python versions. Trace the request that produces the “Request need a non empty 'req' part” response and compare it with the router’s expected request format. Done means the example logs in successfully without the 400 response.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
api, authentication, networking
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Quiet
Clarity
Needs clarification
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.