I have reported the above behavior to the hedgedoc team. It has also been reported by other users and a github ticket exist. It looks like it only affects the linuxserver.io version.
opened 05:03PM - 03 Feb 25 UTC
type: bug
status: needs information
### Description
After updating from 1.10.0 to HedgeDoc 1.10.1, we are unable to… upload images into pads. Image uploads result in a "windows-1252" encoding is not supported stack trace.
### Steps to reproduce
1. Open Pad
2. Upload image
3. See stack trace in HedgeDoc service
### Expected behaviour
Upload image should not crash HedgeDoc service.
### Logs
```shell
RangeError [ERR_ENCODING_NOT_SUPPORTED]: The "windows-1252" encoding is not supported
at #prepareConverter (node:internal/encoding:433:15)
at new TextDecoder (node:internal/encoding:425:31)
at new StringType (file:///opt/hedgedoc/node_modules/token-types/lib/index.js:386:28)
at readChunkHeader (file:///opt/hedgedoc/node_modules/file-type/core.js:1173:38)
at async Object.detectConfident [as detect] (file:///opt/hedgedoc/node_modules/file-type/core.js:1178:19)
at async FileTypeParser.fromTokenizer (file:///opt/hedgedoc/node_modules/file-type/core.js:195:21)
at async FileTypeParser.fromFile (file:///opt/hedgedoc/node_modules/file-type/index.js:23:11)
at async checkUploadType (/opt/hedgedoc/lib/web/imageRouter/index.js:21:23)
at async /opt/hedgedoc/lib/web/imageRouter/index.js:92:18
2025-02-03T16:04:08.374Z error: An uncaught exception has occured.
2025-02-03T16:04:08.374Z error: The "windows-1252" encoding is not supported
2025-02-03T16:04:08.374Z error: Process will exit now.
```
### Config
```shell
```
### Your Setup
- Alpine `3.21.2`
- NodeJS version: `v22.11.0`
- HedgeDoc version: `1.10.1 2024-02-02`
### Additional context
_No response_