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

Z-Wave JS UI won't start: The "windows-1252" encoding is not supported #3994

Closed
3 tasks done
vilellic opened this issue Nov 12, 2024 · 5 comments · Fixed by #4000
Closed
3 tasks done

Z-Wave JS UI won't start: The "windows-1252" encoding is not supported #3994

vilellic opened this issue Nov 12, 2024 · 5 comments · Fixed by #4000
Labels
bug Something isn't working

Comments

@vilellic
Copy link

Checklist

  • I am not using Home Assistant. Or: a developer has told me to come here.
  • I have checked the troubleshooting section and my problem is not described there.
  • I have read the changelog and my problem is not mentioned there.

Deploy method

Docker

Z-Wave JS UI version

9.27

ZwaveJS version

what comes with 9.27

Describe the bug

Updated to the new version, and it didn't start anymore. Failed with error in log:

2024-11-12 18:10:04.339 ERROR STORE: Unhandled Rejection, reason: RangeError [ERR_ENCODING_NOT_SUPPORTED]: The "windows-1252" encoding is not supported
RangeError: The "windows-1252" encoding is not supported
    at new NodeError (node:internal/errors:405:5)
    at TextDecoder.#prepareConverter (node:internal/encoding:423:15)
    at new TextDecoder (node:internal/encoding:415:31)
    at uint8ArrayToString (/usr/src/app/node_modules/@zwave-js/shared/src/uint8array-extras.ts:312:31)
    at Bytes.toString (/usr/src/app/node_modules/@zwave-js/shared/src/Bytes.ts:136:12)
    at SerialPort.<anonymous> (/usr/src/app/node_modules/@zwave-js/serial/src/serialport/ZWaveSerialPortBase.ts:162:24)
    at SerialPort.emit (node:events:517:28)
    at addChunk (node:internal/streams/readable:368:12)
    at readableAddChunk (node:internal/streams/readable:341:9)
    at SerialPort.Readable.push (node:internal/streams/readable:278:10)

When I took 9.26 version in to use, it started to work again.
Using first generation RaZberry Z-wave hat with Raspberry.

To Reproduce

Update to 9.27 and start container.

Expected behavior

That it starts.

Additional context

No response

@vilellic vilellic added the bug Something isn't working label Nov 12, 2024
@hansaya
Copy link

hansaya commented Nov 12, 2024

I'm having the same issue

@robertsLando
Copy link
Member

I think that's related to latest driver release. cc @AlCalzone

@AlCalzone
Copy link
Member

Pretty sure it is. Will take a look later.

@schford
Copy link

schford commented Nov 12, 2024

same for me have reverted to last version.


2024-11-12 19:43:48.179 INFO STORE: Restarting client in 15 seconds, retry 13
2024-11-12 19:44:03.187 DEBUG STORE: Closing server...
2024-11-12 19:44:03.188 INFO STORE: Server closed
2024-11-12 19:44:03.188 INFO STORE: Client closed
2024-11-12 19:44:03.189 INFO STORE: Connecting to /dev/ttyUSB0
Logging to file:
/usr/src/app/store/logs/zwavejs_2024-11-12.log
2024-11-12 19:44:03.193 INFO STORE: Zwavejs usage statistics ENABLED
2024-11-12 19:44:03.193 WARN STORE: Zwavejs driver is not ready yet, statistics will be enabled on driver initialization
2024-11-12 19:44:04.371 ERROR STORE: Unhandled Rejection, reason: RangeError [ERR_ENCODING_NOT_SUPPORTED]: The "windows-1252" encoding is not supported
RangeError: The "windows-1252" encoding is not supported
at new NodeError (node:internal/errors:405:5)
at TextDecoder.#prepareConverter (node:internal/encoding:423:15)
at new TextDecoder (node:internal/encoding:415:31)
at uint8ArrayToString (/usr/src/app/node_modules/@zwave-js/shared/src/uint8array-extras.ts:312:31)
at Bytes.toString (/usr/src/app/node_modules/@zwave-js/shared/src/Bytes.ts:136:12)
at SerialPort. (/usr/src/app/node_modules/@zwave-js/serial/src/serialport/ZWaveSerialPortBase.ts:162:24)
at SerialPort.emit (node:events:517:28)
at addChunk (node:internal/streams/readable:368:12)
at readableAddChunk (node:internal/streams/readable:341:9)
at SerialPort.Readable.push (node:internal/streams/readable:278:10)
2024-11-12 19:44:08.569 INFO STORE: Restarting client in 15 seconds, retry 14

@clsferguson
Copy link

Ditto, I've also having this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

6 participants