Skip to content

Potential issue when updating auth from refresh token #3

Description

@BenJeau

After running it for a few days/week on my server, it broke and the following error was shown (it's either something on my end or Spotify - error deserializing via serde)

INFO currently_playing_spotify::auth: Querying Spotify access token auth API
thread 'tokio-runtime-worker' panicked at 'called `Result::unwrap()` on an `Err` value: reqwest::Error { kind: Decode, source: Error("expected value", line: 2, column: 1) }', src/auth.rs:111:69
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Aborted (core dumped)

Should probably handle the Option instead of unwrapping https://github.com/BenJeau/currently_playing_spotify/blob/main/src/auth.rs#L111

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions