hrkfdn / ncspot

Cross-platform ncurses Spotify client written in Rust, inspired by ncmpc and the likes.
BSD 2-Clause "Simplified" License
5.07k stars 212 forks source link

ncspot can't login, connection timed out (os error 110) #1229

Open Aditeya opened 1 year ago

Aditeya commented 1 year ago

Describe the bug I can't login into spotify via ncspot, I get a timeout error.

To Reproduce Steps to reproduce the behavior:

  1. open ncspot
  2. Type Username
  3. Type Password
  4. Login
  5. Wait a few mins to fail

Expected behavior Login should happen normal

Screenshots Screenshot from 2023-07-15 15-24-54

System:

Backtrace/Debug log

error log ``` [2023-07-15][15:21:42] [ncspot] [INFO] Attempting to resolve credentials via username/password commands [2023-07-15][15:21:43] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:43] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:44] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:44] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:44] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:44] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:44] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:44] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:44] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:44] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:44] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:44] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:44] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:44] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:45] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:45] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:46] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:46] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:46] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:46] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:46] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:46] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:47] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:47] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:47] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:47] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:47] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:47] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:47] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:47] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:47] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:47] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:48] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:48] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:48] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:48] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:48] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:48] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:49] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:49] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:49] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:49] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:49] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:49] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:49] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:49] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:49] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:49] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:49] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:49] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:49] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:49] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:50] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:50] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:21:50] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:21:50] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:11] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:11] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:11] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:11] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:13] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:13] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:14] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:14] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:15] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:15] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:15] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:15] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:17] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:17] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:17] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:17] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:19] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:19] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:20] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:20] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:21] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:21] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:22] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:22] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:23] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:23] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:24] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:24] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:25] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:25] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:26] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:26] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:27] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:27] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:28] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:28] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:30] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:30] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:30] [cursive_core::views::list_view] [DEBUG] Available: 18 [2023-07-15][15:22:30] [cursive_core::views::list_view] [DEBUG] Offset: 9 [2023-07-15][15:22:30] [ncspot::spotify] [DEBUG] No HTTP proxy set [2023-07-15][15:22:30] [mio::poll] [TRACE] registering event source with poller: token=Token(0), interests=READABLE | WRITABLE [2023-07-15][15:22:30] [want] [TRACE] signal: Want [2023-07-15][15:22:30] [want] [TRACE] signal found waiting giver, notifying [2023-07-15][15:22:30] [want] [TRACE] poll_want: taker wants! [2023-07-15][15:22:30] [want] [TRACE] signal: Want [2023-07-15][15:22:30] [want] [TRACE] signal: Want [2023-07-15][15:22:30] [mio::poll] [TRACE] deregistering event source from poller [2023-07-15][15:22:30] [want] [TRACE] signal: Closed [2023-07-15][15:22:30] [librespot_core::apresolve] [WARN] Ignoring blacklisted access point ap-gew4.spotify.com:4070 [2023-07-15][15:22:30] [librespot_core::apresolve] [WARN] Ignoring blacklisted access point ap-gue1.spotify.com:443 [2023-07-15][15:22:30] [librespot_core::session] [INFO] Connecting to AP "ap-gae2.spotify.com:4070" [2023-07-15][15:22:30] [mio::poll] [TRACE] registering event source with poller: token=Token(16777216), interests=READABLE | WRITABLE [2023-07-15][15:24:40] [mio::poll] [TRACE] deregistering event source from poller ```

Additional context I've tried logging into spotify via psst and it seems to work fine. Perhaps it could just need a custom timeout or something?

Aditeya commented 1 year ago

I tried logging in at a different Network and seems to have worked. So could be a timeout issue ?

mbojan commented 1 year ago

I'm getting the same right now after traveling to a different country. Perhaps it is a matter of connecting to a "wrong" Spotify's access point (?). I'm not sure if there is anything we can do about it?

Aditeya commented 1 year ago

Try another network or vpn