-
-
Notifications
You must be signed in to change notification settings - Fork 969
API docs Error #5324
Description
**Describe the when trying to view API documentation - error
To Reproduce
Steps to reproduce the behavior:
- Go to '...'
- Click on '....'
- Scroll down to '....'
- See error
Expected behavior
when trying to view API documentation
- 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]

Additional context
Add any other context about the problem here.