Skip to content

Ncspot needs new auth every day #1851

Description

@Irubataru

Describe the bug
Every day when I open ncspot it asks for "To fully enable Web API features, you need to perform a second OAuth2 authorization". It could be after every boot, I haven't checked that yet. (It's timeout based, not reboot).

I think last time I used this back in December (had to change jobs and was forced on Windows for half a year 😢) it wasn't like that. Is this expected behaviour?

System (please complete the following information):

  • OS: Ubuntu 24.04
  • Terminal: kitty
  • Version: 1.3.4
  • Installed from: cargo

Backtrace/Debug log

[2026-07-24][07:19:25] [ncspot::authentication] [INFO] Using cached credentials
[2026-07-24][07:19:25] [ncspot::spotify] [DEBUG] No HTTP proxy set
[2026-07-24][07:19:25] [librespot_core::session] [DEBUG] new Session
[2026-07-24][07:19:25] [librespot::component] [DEBUG] new ApResolver
[2026-07-24][07:19:25] [librespot_core::http_client] [DEBUG] Requesting https://apresolve.spotify.com/?type=accesspoint&type=dealer&type=spclient
[2026-07-24][07:19:25] [librespot_core::session] [INFO] Connecting to AP "ap-gew4.spotify.com:4070"
[2026-07-24][07:19:25] [librespot_core::connection] [DEBUG] Connection to AP established.
[2026-07-24][07:19:25] [librespot_core::connection] [DEBUG] Authenticating with AP using AUTHENTICATION_STORED_SPOTIFY_CREDENTIALS
[2026-07-24][07:19:25] [librespot_core::session] [INFO] Authenticated as '...' !
[2026-07-24][07:19:25] [librespot_core::session] [DEBUG] drop Session
[2026-07-24][07:19:25] [librespot_core::session] [DEBUG] drop Dispatch
[2026-07-24][07:19:25] [librespot::component] [DEBUG] drop ApResolver
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "background", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "background", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "primary", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "secondary", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "title", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "highlight", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "highlight_bg", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "highlight_inactive_bg", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "playing", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "playing_selected", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "playing_bg", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "error", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "error_bg", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "statusbar_progress", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "statusbar_progress_bg", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "statusbar", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "statusbar_bg", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "cmdline", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "cmdline_bg", falling back to default
[2026-07-24][07:19:25] [ncspot::theme] [WARN] Failed to parse color in "search_match", falling back to default
[2026-07-24][07:19:25] [ncspot::authentication] [INFO] Access token expired, attempting to refresh..
[2026-07-24][07:19:25] [reqwest::connect] [DEBUG] starting new connection: https://accounts.spotify.com/
[2026-07-24][07:19:31] [ncspot::authentication] [ERROR] Failed to refresh token: Failed to exchange code for access token (Server returned error response: invalid_request: refresh_token must be supplied)
[2026-07-24][07:19:31] [librespot_oauth] [INFO] OAuth server listening on 127.0.0.1:33321

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions