Skip to content

Handle negative value for progress_ms #665

@MicahParks

Description

@MicahParks

Description
When playing some music (probably over an hour), an error occurred, playback stopped, and this message was printed to the console:

Couldn't fetch metadata from spotify: Err(ErrorMessage { msg: "convert result failed, reason: Error(\"invalid value: integer -3, expected u32\", line: 11, column: 20);

There was a long portion after that were it appeared to log the body of an HTTP response. It had many \ escape characters printed to the console. It began with content: but I've decided to not paste the whole thing. The affected line appears to be this top level JSON key value pair: "progress_ms": -3,.

To Reproduce
I immediately copied the logs and tried to reproduce the error, but was unable to with any of the recently played songs. I have been unable to reproduce the error since then.

Expected behavior
The client to seamlessly handle the unexpected negative value without letting the user know.

Versions:
I was using this prebuilt release: https://github.com/Spotifyd/spotifyd/releases/download/v0.2.24/spotifyd-linux-full.tar.gz

I was also using playerctl, but don't remember using it around the time of the crash. This prebuilt release: https://github.com/altdesktop/playerctl/releases/download/v2.2.1/playerctl-2.2.1_amd64.deb

Ubuntu 20.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugA functionality or parts of a program that do not work as intendedwontfixIssues that will not be fixed under any circumstances

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions