Skip to content

API docs Error #5324

@Remeshboy

Description

@Remeshboy

**Describe the when trying to view API documentation - error

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior

when trying to view API documentation

  1. Go to -> (Admin Panel -> Settings -> API)
    2.click on API
    3.See error

an error occurs — the document could not be uploaded.
Couldn't get the API description document. This may indicate problems with the connection or with the server hosting the specification.

When refresh page - appears this error

500

Упс! что-то пошло не так Hiddify Panel 12.0.0

Пожалуйста создайте проблему на Github.

invalid literal for int() with base 10: '1/api/docs'
Traceback (most recent call last):
File "/opt/hiddify-manager/.venv313/lib/python3.13/site-packages/flask/app.py", line 917, in full_dispatch_request
rv = self.dispatch_request()
File "/opt/hiddify-manager/.venv313/lib/python3.13/site-packages/flask/app.py", line 902, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^^^
File "/opt/hiddify-manager/.venv313/lib/python3.13/site-packages/flask_admin/base.py", line 69, in inner
return self._run_view(f, *args, **kwargs)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^
File "/opt/hiddify-manager/.venv313/lib/python3.13/site-packages/flask_admin/base.py", line 369, in _run_view
return fn(self, *args, **kwargs)
File "/opt/hiddify-manager/.venv313/lib/python3.13/site-packages/flask_admin/model/base.py", line 1980, in index_view
count, data = self.get_list(view_args.page, sort_column, view_args.sort_desc,
~~~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
view_args.search, view_args.filters, page_size=page_size)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/hiddify-manager/.venv313/lib/python3.13/site-packages/hiddifypanel/panel/admin/UserAdmin.py", line 375, in get_list
res = super().get_list(page, sort_column, sort_desc, search=search, filters=filters, page_size=page_size, *args, **kwargs)
File "/opt/hiddify-manager/.venv313/lib/python3.13/site-packages/flask_admin/contrib/sqla/view.py", line 1059, in get_list
query = self.get_query()
File "/opt/hiddify-manager/.venv313/lib/python3.13/site-packages/hiddifypanel/panel/admin/UserAdmin.py", line 399, in get_query
admin_id = int(request.args.get("admin_id") or g.account.id)
ValueError: invalid literal for int() with base 10: '1/api/docs'

Smartphone (please complete the following information):

  • Device: [e.g. iPhone16 pro max]
  • OS: [e.g. iOS 26.3.1 (23D8133)]
  • Browser [e.g. Yandex browser ]
  • Version [e.g. 26.3.5 build 544]image

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions