[GH-ISSUE #451] proxy setting doesnt work? #251

Closed
opened 2026-03-02 23:45:56 +03:00 by kerem · 5 comments
Owner

Originally created by @awnrt on GitHub (May 17, 2024).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/451

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

  • OS: Artix Linux
  • Application version: 0.17.2-1 and 0.18.1-1
  • Application features: pulseaudio-backend,lyric-finder,media-control,sixel,streaming,notify,daemon

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

Originally created by @awnrt on GitHub (May 17, 2024). Original GitHub issue: https://github.com/aome510/spotify-player/issues/451 **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** - OS: Artix Linux - Application version: 0.17.2-1 and 0.18.1-1 - Application features: pulseaudio-backend,lyric-finder,media-control,sixel,streaming,notify,daemon **Additional context** Using proxychains to launch spotify-player works thought.
kerem 2026-03-02 23:45:56 +03:00
Author
Owner

@aome510 commented on GitHub (May 17, 2024):

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.

<!-- gh-comment-id:2117795410 --> @aome510 commented on GitHub (May 17, 2024): 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.
Author
Owner

@aome510 commented on GitHub (May 17, 2024):

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

<!-- gh-comment-id:2117798809 --> @aome510 commented on GitHub (May 17, 2024): I guess scope of this issue will be updating the [client code](https://github.com/aome510/spotify-player/blob/master/spotify_player/src/client/mod.rs) 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
Author
Owner

@rafaelpirolla commented on GitHub (Oct 30, 2024):

try also setting https_proxy/http_proxy and no_proxy env vars on top of the config

<!-- gh-comment-id:2446538381 --> @rafaelpirolla commented on GitHub (Oct 30, 2024): try also setting https_proxy/http_proxy and no_proxy env vars on top of the config
Author
Owner

@awnrt commented on GitHub (Nov 4, 2024):

try also setting https_proxy/http_proxy and no_proxy env vars on top of the config

Still doesn't work. I am using split tunneling now so no more help needed ig.

<!-- gh-comment-id:2453646916 --> @awnrt commented on GitHub (Nov 4, 2024): > try also setting https_proxy/http_proxy and no_proxy env vars on top of the config Still doesn't work. I am using split tunneling now so no more help needed ig.
Author
Owner

@artemklevtsov commented on GitHub (Jul 12, 2025):

https_proxy environment variable works for me.

<!-- gh-comment-id:3064931183 --> @artemklevtsov commented on GitHub (Jul 12, 2025): `https_proxy` environment variable works for me.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-player#251
No description provided.