Internal server error: Unknown

Open
#5,678 1 comment 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
48/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Active
Tech stack
flask, python, redis
Domain
backend

Research direction

Start by reading hiddifypanel/hutils/flask.py around parse_user_agent and get_user_agent, then inspect the redis_cache deserializer path shown in the traceback. Reproduce the failure with the reported Python 3.13.7 setup and check how cached user-agent results are read. Done means the request no longer raises the invalid load key error and the user agent is handled correctly.

Written by the indexing model from the issue text.

Description

bug need_attention useful

Internal Error Stacktrace:

Error Message: invalid load key, 'O'.

Traceback (most recent call last):
  File "/opt/hiddify-manager/.venv313/lib/python3.13/site-packages/flask/app.py", line 915, in full_dispatch_request
    rv = self.preprocess_request()
  File "/opt/hiddify-manager/.venv313/lib/python3.13/site-packages/flask/app.py", line 1286, in preprocess_request
    url_func(request.endpoint, request.view_args)
  File "/opt/hiddify-manager/.venv313/lib/python3.13/site-packages/hiddifypanel/panel/common.py", line 177, in pull_default
    g.user_agent = hutils.flask.get_user_agent()
  File "/opt/hiddify-manager/.venv313/lib/python3.13/site-packages/hiddifypanel/hutils/flask.py", line 119, in get_user_agent
    return parse_user_agent(request.user_agent.string or "")
  File "/opt/hiddify-manager/.venv313/lib/python3.13/site-packages/hiddifypanel/hutils/flask.py", line 127, in parse_user_agent
    data = __parse_user_agent(ua)
  File "/opt/hiddify-manager/.venv313/lib/python3.13/site-packages/redis_cache/__init__.py", line 231, in inner
    parsed_result = self.deserializer(result)

Details:

Hiddify Version: 14.2.0
Python Version: 3.13.7 (main, Sep 18 2025, 19:47:49) [Clang 20.1.4 ]
OS: Linux-6.8.0-142-generic-x86_64-with-glibc2.39
User Agent: Unknown

Dominant language
Python
Stars
9.5k
Forks
1.1k
Avg merge
1d 2h
Merged PRs (30d)
9

Getting set up

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.

More from hiddify/Hiddify-Manager

All issues in hiddify/Hiddify-Manager

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.