jeroentvb / spicetify-power-bar

Spotlight-like search bar for spotify
GNU General Public License v3.0
74 stars 4 forks source link

"Something went wrong" when trying to add a song to the queue #47

Closed Yoyopizzacat closed 11 months ago

Yoyopizzacat commented 1 year ago

Describe the bug There is an error message when trying to add a song to the queue and nothing gets added.

To Reproduce Steps to reproduce the behavior:

  1. 'alt/option + space' to open powerbar
  2. 'cmd + enter' to add song to queue

Expected behavior The song gets added to queue.

Screenshots If applicable, add screenshots to help explain your problem. image

Device info (please complete the following information):

Additional context Add any other context about the problem here.

jeroentvb commented 1 year ago

It sounds like this is related to #32. For some reason this error happens when you've not played anything yet, or haven't played anything in a while (while having Spotify open). It's caused by the Spotify API returning a 403, something I can't fix.

If this also happens outside of those cases, could you provide extended reproduction steps?

oneeyedreaper commented 1 year ago

Facing the same issue. Tried reinstalling the extension, but that didn't resolve it. Ctrl + Enter gives out Something Went Wrong while playing the song. It was working some weeks ago, so the update may have broken something.

jeroentvb commented 1 year ago

Since it's working for me I can't do anything about this issue.

I either need an error log and/or accurate reproduction steps to be able to fix it.

oneeyedreaper commented 1 year ago

this

jeroentvb commented 1 year ago

I tested on both windows and macOs, and seem to only be able to trigger that error when not having been active for a while, or just launching spotify without having played anything, similar to #32.

It looks like Spotify de-registers or hasn't registered the spotify/spicetify session and doesn't know what session to use when adding an item to the queue. This could be fixable by adding device_id to the add to queue call, but I don't know what id to use. Any id I tried resulted in a 404. Their endpoint for fetching the ids doesn't seem to work either..

There's also some related stackoverflow posts and forum issues about this issue.

So unfortunately it looks like this isn't something I'm able to fix. 😕

oneeyedreaper commented 1 year ago

Just used the extension today and it seems to be working now. Not sure what happened, but glad it's working now. @Yoyopizzacat please check this again after updating the spicetify cli.