code-radio-cli icon indicating copy to clipboard operation
code-radio-cli copied to clipboard

Multiple crashes

Open zampierilucas opened this issue 3 years ago • 1 comments

Hello, I've been using it for the last hours, but I keep having crashes, bellow are the logs.

Song:       Luv(sic) Part5  featuring Shing02 instrumental
Artist:     Nujabes
Album:      Luv (Sic) Part 5

Song:       digital dreams
Artist:     knowmadic
Album:      Chillhop Essentials Winter 2019
Volume 1/9  █████████████████████████████████░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░░ 01:16 / 02:52 - Listeners: 141
Error: WebSocket protocol error: Connection reset without closing handshake
Song:       earth angel
Artist:     Marcus D
Album:
Volume 1/9  â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘â–‘ 02:57 - Listeners: 126
Error: expected value at line 1 column 1

zampierilucas avatar Apr 27 '23 18:04 zampierilucas

Please upgrade to v1.0.3 and see if this still happens.

WinGet

winget upgrade code-radio-cli

Cargo

cargo install code-radio-cli

The second error seems like a JSON deserialization error.

This program connects to Code Radio's WebSocket endpoint to get current song info.

With https://github.com/JasonWei512/code-radio-cli/pull/12, now code-radio-cli will try to reconnect WebSocket when there's a network or JSON deserialization error.

JasonWei512 avatar Apr 29 '23 12:04 JasonWei512