mirror of
https://github.com/entriphy/sp-playcount-librespot.git
synced 2026-04-26 22:26:02 +03:00
[GH-ISSUE #11] TravelRestriction error #11
Labels
No labels
bug
bug
enhancement
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/sp-playcount-librespot#11
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @surfmore on GitHub (Aug 8, 2020).
Original GitHub issue: https://github.com/entriphy/sp-playcount-librespot/issues/11
Describe the bug
When I run the program it is giving the following error.
To Reproduce
java -jar sp-playcount-librespot-v1.4.jar user pass
** Error
2020-08-09 01:15:16,328 INFO ApResolver:66 - Loaded aps into pool: {accesspoint=[guc3-accesspoint-b-rf1j.ap.spotify.com:4070, guc3-accesspoint-b-m208.ap.spotify.com:443, guc3-accesspoint-b-fssp.ap.spotify.com:80, guc3-accesspoint-b-70kt.ap.spotify.com:4070, guc3-accesspoint-b-dppf.ap.spotify.com:443, guc3-accesspoint-b-zkw2.ap.spotify.com:80, gae2-accesspoint-c-zk7b.ap.spotify.com:4070, gew1-accesspoint-b-9v0l.ap.spotify.com:443, gew1-accesspoint-b-g7br.ap.spotify.com:80], dealer=[guc-dealer.spotify.com:443, gew-dealer.spotify.com:443, gae-dealer.spotify.com:443], spclient=[guc-spclient.spotify.com:443, gew-spclient.spotify.com:443, gae-spclient.spotify.com:443]}
2020-08-09 01:15:16,563 INFO Session:94 - Created new session! {deviceId: c70f928698cc099e39bddfd469f7de38e3b805db, ap: guc3-accesspoint-b-dppf.ap.spotify.com:443}
2020-08-09 01:15:17,422 INFO Session:223 - Connected successfully!
Exception in thread "main" xyz.gianlu.librespot.core.Session$SpotifyAuthenticationException: TravelRestriction
at xyz.gianlu.librespot.core.Session.authenticatePartial(Session.java:311)
at xyz.gianlu.librespot.core.Session.authenticate(Session.java:231)
at xyz.gianlu.librespot.core.Session$Builder.create(Session.java:583)
at xyz.gianlu.librespot.Main.main(Main.java:18)
@annadnl commented on GitHub (Sep 23, 2020):
figured this one out:
you need to create your spotify in the same country where your server is running.
for example, if you deploy on amazon in the Frankfurt region, the account needs to be a German one (any vpn will do for the account creation)
@entriphy commented on GitHub (Dec 10, 2020):
Closing this issue since it seems that there's no way to fix this, as the restriction is on Spotify's side. annadnl's solution is the only way around this AFAIK.