fabiofalci / sconsify

A spotify console application
https://fabiofalci.github.io/sconsify
Apache License 2.0
566 stars 26 forks source link

Error with the connection #84

Open HermanPierre opened 6 years ago

HermanPierre commented 6 years ago

hello :) I try to connect to my spotify account, but when i put my ids he say:

Error: Username doesn't match with web-api authorization

Before that, i was connected but when i was putting the token he was saying an error:

goroutine 19 [running]: panic(0x805360, 0xc42000c110) /usr/local/go/src/runtime/panic.go:500 +0x1a1 github.com/fabiofalci/sconsify/webapi.Auth(0x8b5720, 0x20, 0x8b59e0, 0x35, 0x180001, 0x0) /go/src/github.com/fabiofalci/sconsify/webapi/web_auth.go:51 +0x887 github.com/fabiofalci/sconsify/spotify.(Spotify).finishInitialisation(0xc420136770, 0xc420124280, 0xc42012a048, 0x0, 0x0) /go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:146 +0x12d github.com/fabiofalci/sconsify/spotify.(Spotify).checkIfLoggedIn(0xc420136770, 0xc420124280, 0xc42012a048, 0xc420128368, 0x8) /go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:120 +0x5a github.com/fabiofalci/sconsify/spotify.initialiseSpotify(0xc420124280, 0xc420128348, 0x7, 0xc420128368, 0x8, 0x8, 0xc420130100, 0x0, 0x0) /go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:60 +0x22a github.com/fabiofalci/sconsify/spotify.Initialise(0xc420124280, 0xc420128348, 0x7, 0xc420128368, 0x8, 0x8, 0xc420130100) /go/src/github.com/fabiofalci/sconsify/spotify/spotify.go:39 +0x7a created by main.main /go/src/github.com/fabiofalci/sconsify/sconsify.go:85 +0xaad

And yes i was putting all the token sentance, with the spaces. I use spotify with my facebook but i'd like to not disconnect them. I'd like to try some news things to get this working but... thanks

HermanPierre commented 6 years ago

Now i've created a spotify account without facebook and i put the premium on it, but it still saying that my web-api dosen't match :/

fabiofalci commented 6 years ago

Can you make sure that you have used the new account in the browser too?

Because when it generates the token in the browser, it'll get the logged in user from there.

HermanPierre commented 6 years ago

Hey ! I found the solution, because my account was created with facebook, i couldn't dissociate them, so i found this link: https://www.spotify.com/au/account/set-device-password/ And so nowi can use my username to connect and i can connect to my spotify account without the facebook button :) Thanks and nice application !