Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alpine Linux (Docker) - ERR_ENCODING_NOT_SUPPORTED after updating to 0.16.0 #1580

Open
glenndehaan opened this issue Jan 4, 2025 · 0 comments

Comments

@glenndehaan
Copy link

Bug Report

Description of the problem

After updating pdfkit from 0.15.1 to 0.16.0 it broke on Alpine Linux within Docker.
On my local machine however (Pop_OS Linux) it worked without a problem.
Downgrading back to 0.15.1 fixed the issue within Docker.

2025-01-05 00:06:03 app-1  | node:internal/encoding:439
2025-01-05 00:06:03 app-1  |         throw new ERR_ENCODING_NOT_SUPPORTED(this[kEncoding]);
2025-01-05 00:06:03 app-1  |         ^
2025-01-05 00:06:03 app-1  | 
2025-01-05 00:06:03 app-1  | RangeError [ERR_ENCODING_NOT_SUPPORTED]: The "windows-1252" encoding is not supported
2025-01-05 00:06:03 app-1  |     at #prepareConverter (node:internal/encoding:439:15)
2025-01-05 00:06:03 app-1  |     at new TextDecoder (node:internal/encoding:431:31)
2025-01-05 00:06:03 app-1  |     at Object.<anonymous> (/app/node_modules/fontkit/dist/main.cjs:5424:51)
2025-01-05 00:06:03 app-1  |     at Module._compile (node:internal/modules/cjs/loader:1358:14)
2025-01-05 00:06:03 app-1  |     at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
2025-01-05 00:06:03 app-1  |     at Module.load (node:internal/modules/cjs/loader:1208:32)
2025-01-05 00:06:03 app-1  |     at Module._load (node:internal/modules/cjs/loader:1024:12)
2025-01-05 00:06:03 app-1  |     at Module.require (node:internal/modules/cjs/loader:1233:19)
2025-01-05 00:06:03 app-1  |     at require (node:internal/modules/helpers:179:18)
2025-01-05 00:06:03 app-1  |     at Object.<anonymous> (/app/node_modules/pdfkit/js/pdfkit.js:7:15) {
2025-01-05 00:06:03 app-1  |   code: 'ERR_ENCODING_NOT_SUPPORTED'
2025-01-05 00:06:03 app-1  | }
2025-01-05 00:06:03 app-1  | 
2025-01-05 00:06:03 app-1  | Node.js v20.15.1

Your environment

  • pdfkit version: 0.16.0
  • Node version: 20.15.1
  • Operating System: Alpine Linux 3.20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant