Skip to content

UTF-8 ENCODING PROBLEM with Audio files #7687

@PoLTheToWeR

Description

@PoLTheToWeR

ComfyUI/output/AnimateDiff_00004.mp4 is not UTF-8 encoded[W 2025-08-04 11:33:19.792 ServerApp] wrote error: '/workspace/ComfyUI/output/AnimateDiff_00004.mp4 is not UTF-8 encoded'Traceback (most recent call last):File "/usr/local/lib/python3.12/dist-packages/jupyter_server/services/contents/fileio.py", line 562, in _read_file(bcontent.decode("utf8"), "text", bcontent)^^^^^^^^^^^^^^^^^^^^^^^UnicodeDecodeError: 'utf-8' codec can't decode byte 0x8a in position 43: invalid start byteThe above exception was the direct cause of the following exception:Traceback (most recent call last):File "/usr/local/lib/python3.12/dist-packages/tornado/web.py", line 1848, in _executeresult = await result^^^^^^^^^^^^File "/usr/local/lib/python3.12/dist-packages/jupyter_server/auth/decorator.py", line 73, in innerreturn await out^^^^^^^^^File "/usr/local/lib/python3.12/dist-packages/jupyter_server/services/contents/handlers.py", line 156, in getmodel = await ensure_async(^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.12/dist-packages/jupyter_core/utils/init.py", line 197, in ensure_asyncresult = await obj^^^^^^^^^File "/usr/local/lib/python3.12/dist-packages/jupyter_server/services/contents/filemanager.py", line 926, in getmodel = await self._file_model(^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.12/dist-packages/jupyter_server/services/contents/filemanager.py", line 835, in _file_modelcontent, format, bytes_content = await self._read_file(os_path, format, raw=True) # type: ignore[misc]^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^File "/usr/local/lib/python3.12/dist-packages/jupyter_server/services/contents/fileio.py", line 571, in _read_fileraise HTTPError(tornado.web.HTTPError: HTTP 400: bad format (/workspace/ComfyUI/output/AnimateDiff_00004.mp4 is not UTF-8 encoded)[W 2025-08-04 11:33:19.793 ServerApp]
400 GET /api/contents/workspace/ComfyUI/output/AnimateDiff_00004.mp4?type=file&content=1&hash=1&format=text&contentProviderId=undefined&1754307199899 ([email protected]) 6.17ms referer=https://horn-wizard-thru-theta.trycloudflare.com/tree/workspace/ComfyUI/output[W 2025-08-04 11:33:23.754 ServerApp] 400 GET /api/contents/wor

I am having this problem when Jupyter tries to read this .mp4. GPT says that it interprets it as text. Is there any way to solve this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions