Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

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

未關閉
#486 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

維護者通常 4 天內回覆

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
45/100
Issue 類型
缺陷
描述清晰度
需要釐清
活躍度
冷清
技術堆疊
python

研究方向

從 README.md 中的範例開始,使用列出的 package 和 Python 版本,在回報的 FAST3896 router 上重現登入流程。追蹤產生“Request need a non empty 'req' part”回應的請求,並將其與 router 預期的請求格式進行比較。當範例能夠成功登入且不再出現 400 回應時,即視為完成。

由索引模型根據 Issue 內容生成。

描述

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]

主要語言
Python
星號
142
分支
48
平均合併
3 天 23 小時
30 天內合併 PR
6

環境準備

在 Codespaces 中開啟

在瀏覽器裡用你自己的 GitHub 帳號啟動這個專案的開發容器。

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 沒有貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

iMicknl/python-sagemcom-api 的其他 Issue

查看 iMicknl/python-sagemcom-api 的全部 Issue

相似的 Issue

更多 Python Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。