Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recording with Spotify API doesn't work anymore. #424

Closed
Hkllopp opened this issue May 16, 2022 · 7 comments
Closed

Recording with Spotify API doesn't work anymore. #424

Hkllopp opened this issue May 16, 2022 · 7 comments
Labels
api 📡 Related to Spotify or LastFM API bug 🐞 needs feedback 📬 Cannot be close/fixed until users give more feedback

Comments

@Hkllopp
Copy link

Hkllopp commented May 16, 2022

Hi,

I used to use spytify for months and it worked fine with the spotify API (I created the app and everything) and suddenly stopped working.
To my intuition, the problem is most probably coming with the login in the spotify API, most probbaly because the app cannot read properly the client ID/secret key (no idea why).

Issue :
Before the issue happening, when I launched a spytify recording session (with the spotify api), it opened a browser window on the redirection url (usually http://localhost:4002) and asked me for login to spotify. I did and it worked well.
Now, when I start a recording session, no window appears, and even if the client recognize the song playing throught the spotify app (written next to the play icon in the "spy" tab), spytify never launches the recording. The last log is "Debut de l'espionnage"/"Spying started" and nothing happens.

What I already tried :

  • Recreating an app on the spotify dashboard. Doesn't fix anything.
  • Launching by myself the redirecting url on a browser when starting the recording. Interestingly, when I do that, an error message occurs. See screenshots. Obviously, the key (and secret key) is written in the corresponding fields contrary to the error message. I think the error might come from here.
  • Creating a recording session with the LastFM API. Working perfectly, as a proof that the error comes with the spotify login.
  • Using another song. Doesn't make any difference, as it would be expected because it worked with the LastFM API AND the problem occurs event before the recording.

Case particularity :

  • I'm using the french version of the spytify (and english one of the spotify app)

image

@jwallet
Copy link
Owner

jwallet commented May 20, 2022

can you try the RESET_APP_SETTINGS batch file in the spytify folder

@jwallet jwallet added the api 📡 Related to Spotify or LastFM API label May 20, 2022
@Hkllopp
Copy link
Author

Hkllopp commented May 20, 2022

Didn't changed anything even by deleting manually the "%userprofile%\AppData\Local\Spytify*"
The spotify API login page won't open when starting the recording.

@instinctualjealousy
Copy link

They recently sunset libspotify API access on the website, does this use libspotify for any operations?

@jwallet
Copy link
Owner

jwallet commented Jun 22, 2022

I get this error if the dev app has not the same port than the port provided in Spytify. Otherwise, it works.
It has to be a non-secured address. http://localhost:5000 not https://localhost:5000

image

@jwallet jwallet added the needs feedback 📬 Cannot be close/fixed until users give more feedback label Jun 22, 2022
@Hkllopp
Copy link
Author

Hkllopp commented Jun 22, 2022

Unfortunatly, it didn't make any changes.
Both my spotify app and the spytify settings are set to http://localhost:5000 it still doesn't work.
I don't know if it helps, but when the app worked well (some months ago), when starting the recording, spytify used to open a new tab in my web browser onto the right localhost url. Now, nothing happens when I start a recording, and when I go to the correct localhost port, I still got this error.
Thanks for your help, I hope we'll figure it out !

@lalit22km
Copy link

I don't know about @Hkllopp 's bug but a few of my friends had the same issue. It was a human error not a bug. The http://localhost:port must be added to the Redirect URI. All of them didn't read the FAQ and pasted the url into the website field.

@Hkllopp
Copy link
Author

Hkllopp commented Sep 16, 2022

Unfortunately, I had to reinstall windows and now (when changing redirect url to http://localhost:5000), it works again.
Do that's some great news for me but I won't be able to give you further details.
However, I think I wouldn't be able to do it anyway because I provided every details I could in the issue first message.

@Hkllopp Hkllopp closed this as completed Sep 16, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api 📡 Related to Spotify or LastFM API bug 🐞 needs feedback 📬 Cannot be close/fixed until users give more feedback
Projects
None yet
Development

No branches or pull requests

4 participants