/console/api/files/support-type #19142

Closed
opened 2026-02-21 19:56:12 -05:00 by yindo · 0 comments
Owner

Originally created by @shijunti19 on GitHub (Oct 13, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.9.1

Cloud or Self Hosted

Cloud

Steps to reproduce

127.0.0.1 - - [13/Oct/2025:09:10:12 +0000] "GET /console/api/files/upload HTTP/1.1" 200 159 "https://ai.951919.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36"
2025-10-13 09:10:12,30 ERROR [app.py:875] 44adf153b6 Exception on /console/api/files/support-type [GET]
Traceback (most recent call last):
  File "/longteng/soft/dify/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/longteng/soft/dify/api/.venv/lib/python3.12/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 "/longteng/soft/dify/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 406, in wrapper
    return self.make_response(data, code, headers=headers)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/longteng/soft/dify/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 430, in make_response
    resp = self.representations[mediatype](data, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/longteng/soft/dify/api/.venv/lib/python3.12/site-packages/flask_restx/representations.py", line 22, in output_json
    dumped = dumps(data, **settings) + "\n"
             ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: {'pdf', 'HTM', 'VTT', 'html', 'docx', 'PDF', 'markdown', 'properties', 'HTML', 'MD', 'csv', 'TXT', 'htm', 'xlsx', 'txt', 'XLS', 'mdx', 'CSV', 'MARKDOWN', 'XLSX', 'xls', 'MDX', 'vtt', 'md', 'DOCX', 'PROPERTIES'} is not JSON serializable
2025-10-13 09:10:12,30 ERROR [app.py:875] 44adf153b6 Exception on /console/api/files/support-type [GET]
Traceback (most recent call last):
  File "/longteng/soft/dify/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
    rv = self.dispatch_request()
         ^^^^^^^^^^^^^^^^^^^^^^^
  File "/longteng/soft/dify/api/.venv/lib/python3.12/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 "/longteng/soft/dify/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 406, in wrapper
    return self.make_response(data, code, headers=headers)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/longteng/soft/dify/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 430, in make_response
    resp = self.representations[mediatype](data, *args, **kwargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/longteng/soft/dify/api/.venv/lib/python3.12/site-packages/flask_restx/representations.py", line 22, in output_json
    dumped = dumps(data, **settings) + "\n"
             ^^^^^^^^^^^^^^^^^^^^^^^
TypeError: {'pdf', 'HTM', 'VTT', 'html', 'docx', 'PDF', 'markdown', 'properties', 'HTML', 'MD', 'csv', 'TXT', 'htm', 'xlsx', 'txt', 'XLS', 'mdx', 'CSV', 'MARKDOWN', 'XLSX', 'xls', 'MDX', 'vtt', 'md', 'DOCX', 'PROPERTIES'} is not JSON serializable
127.0.0.1 - - [13/Oct/2025:09:10:12 +0000] "GET /console/api/files/support-type HTTP/1.1" 500 66 "https://ai.951919.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36"

✔️ Expected Behavior

console/api/files/support-type

Actual Behavior

git apply 26785.patch
I have already applied this patch
console/api/files/support-type

Originally created by @shijunti19 on GitHub (Oct 13, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.9.1 ### Cloud or Self Hosted Cloud ### Steps to reproduce ``` 127.0.0.1 - - [13/Oct/2025:09:10:12 +0000] "GET /console/api/files/upload HTTP/1.1" 200 159 "https://ai.951919.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36" 2025-10-13 09:10:12,30 ERROR [app.py:875] 44adf153b6 Exception on /console/api/files/support-type [GET] Traceback (most recent call last): File "/longteng/soft/dify/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/longteng/soft/dify/api/.venv/lib/python3.12/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 "/longteng/soft/dify/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 406, in wrapper return self.make_response(data, code, headers=headers) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/longteng/soft/dify/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 430, in make_response resp = self.representations[mediatype](data, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/longteng/soft/dify/api/.venv/lib/python3.12/site-packages/flask_restx/representations.py", line 22, in output_json dumped = dumps(data, **settings) + "\n" ^^^^^^^^^^^^^^^^^^^^^^^ TypeError: {'pdf', 'HTM', 'VTT', 'html', 'docx', 'PDF', 'markdown', 'properties', 'HTML', 'MD', 'csv', 'TXT', 'htm', 'xlsx', 'txt', 'XLS', 'mdx', 'CSV', 'MARKDOWN', 'XLSX', 'xls', 'MDX', 'vtt', 'md', 'DOCX', 'PROPERTIES'} is not JSON serializable 2025-10-13 09:10:12,30 ERROR [app.py:875] 44adf153b6 Exception on /console/api/files/support-type [GET] Traceback (most recent call last): File "/longteng/soft/dify/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/longteng/soft/dify/api/.venv/lib/python3.12/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 "/longteng/soft/dify/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 406, in wrapper return self.make_response(data, code, headers=headers) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/longteng/soft/dify/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 430, in make_response resp = self.representations[mediatype](data, *args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/longteng/soft/dify/api/.venv/lib/python3.12/site-packages/flask_restx/representations.py", line 22, in output_json dumped = dumps(data, **settings) + "\n" ^^^^^^^^^^^^^^^^^^^^^^^ TypeError: {'pdf', 'HTM', 'VTT', 'html', 'docx', 'PDF', 'markdown', 'properties', 'HTML', 'MD', 'csv', 'TXT', 'htm', 'xlsx', 'txt', 'XLS', 'mdx', 'CSV', 'MARKDOWN', 'XLSX', 'xls', 'MDX', 'vtt', 'md', 'DOCX', 'PROPERTIES'} is not JSON serializable 127.0.0.1 - - [13/Oct/2025:09:10:12 +0000] "GET /console/api/files/support-type HTTP/1.1" 500 66 "https://ai.951919.com/" "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/141.0.0.0 Safari/537.36" ``` ### ✔️ Expected Behavior console/api/files/support-type ### ❌ Actual Behavior git apply 26785.patch I have already applied this patch console/api/files/support-type
yindo added the 🐞 bugcloud labels 2026-02-21 19:56:12 -05:00
yindo closed this issue 2026-02-21 19:56:12 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#19142