aome510 / spotify-player

A Spotify player in the terminal with full feature parity
MIT License
2.95k stars 132 forks source link

proxy setting doesnt work? #451

Open Awnrt opened 1 month ago

Awnrt commented 1 month ago

Describe the bug Setting up a proxy in app.toml doesn't do anything tried both proxy = "http://ip:port" and proxy = "ip:port"

Expected behaviour Loading artist and album pages

Log and backtrace

2024-05-17T13:18:35.090618Z ERROR client_request{request=GetContext(Album(AlbumId("4il76IU7nxK7XwLDn5ta3T")))}: spotify_player::client::handlers: Failed to handle client request: http error: status code 403 Forbidden
2024-05-17T13:18:36.009379Z  INFO client_request{request=GetContext(Album(AlbumId("4il76IU7nxK7XwLDn5ta3T")))}: spotify_player::client: Get album context: spotify:album:4il76IU7nxK7XwLDn5ta3T
2024-05-17T13:18:36.099925Z ERROR client_request{request=GetContext(Album(AlbumId("4il76IU7nxK7XwLDn5ta3T")))}: spotify_player::client::handlers: Failed to handle client request: http error: status code 403 Forbidden
2024-05-17T13:18:37.016939Z  INFO client_request{request=GetContext(Album(AlbumId("4il76IU7nxK7XwLDn5ta3T")))}: spotify_player::client: Get album context: spotify:album:4il76IU7nxK7XwLDn5ta3T
2024-05-17T13:18:37.104006Z ERROR client_request{request=GetContext(Album(AlbumId("4il76IU7nxK7XwLDn5ta3T")))}: spotify_player::client::handlers: Failed to handle client request: http error: status code 403 Forbidden
2024-05-17T13:18:38.022382Z  INFO client_request{request=GetContext(Album(AlbumId("4il76IU7nxK7XwLDn5ta3T")))}: spotify_player::client: Get album context: spotify:album:4il76IU7nxK7XwLDn5ta3T
2024-05-17T13:18:38.114480Z ERROR client_request{request=GetContext(Album(AlbumId("4il76IU7nxK7XwLDn5ta3T")))}: spotify_player::client::handlers: Failed to handle client request: http error: status code 403 Forbidden

Environment

Additional context Using proxychains to launch spotify-player works thought.

aome510 commented 1 month ago

the proxy setting is used to configure the third-party library https://github.com/librespot-org/librespot/wiki/Behind-web-proxy, so it might not work with normal spotify API request though.

aome510 commented 1 month ago

I guess scope of this issue will be updating the client code to support proxy when making a Spotify API request. Not familiar with the proxy concept myself, so this is not something I can look into