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

[Spotify Player] Getting "Bad gateway" or "Restriction Violated" when play/pausing #14630

Open
hyejinie opened this issue Sep 23, 2024 · 5 comments
Labels
bug Something isn't working Dont close Won't be closed by stalebot extension: spotify-player Issues related to the spotify-player extension extension Issues related to one of the extensions in the Store

Comments

@hyejinie
Copy link

hyejinie commented Sep 23, 2024

Extension

https://raycast.com/mattisssa/spotify-player

Raycast Version

1.83.1

macOS Version

Sequoia 15.0

Description

I'm using the spotify extension and raycast shortcut to play/pause. It says "bad gateway" upon first using the shortcut to toggle play, but if I use it a second time it plays. However, it is unable to toggle pause.

Gets this:

Error: Bad gateway.

Jd:pause.ts:19:10

---
16:       return;
17:     }
18:     console.log("pause.ts Error: ", error);
19:     throw new Error(error);
20:   }
21: }
22: 
---

async onAction:nowPlaying.js:60:4591

Steps To Reproduce

Using option + space as a shortcut to toggle play/pause. option+space once = 'bad gateway'. option+space again = toggles play. option+space a third time to toggle pause = 'bad gateway' and does not pause. Further option+space leads to the same result (i.e., unable to pause).

Current Behaviour

Unable to toggle pause; able to toggle play but after 2 commands and with 'bad gateway' popping up.

Expected Behaviour

Able to toggle play/pause.

@hyejinie hyejinie added bug Something isn't working extension Issues related to one of the extensions in the Store labels Sep 23, 2024
@raycastbot raycastbot added the extension: spotify-player Issues related to the spotify-player extension label Sep 23, 2024
@raycastbot
Copy link
Collaborator

raycastbot commented Sep 23, 2024

Thank you for opening this issue!

🔔 @mattisssa @peduarte @sxn @dillionverma @andreaselia @stuart @tonka3000 @dancannon @pernielsentikaer @stevensd2m @erics118 @hjoelh @hobhouse @jatindotdev @the-devbear @rfaccio @badta5te @andyburris @rhesamu you might want to have a look.

💡 Author and Contributors commands

The author and contributors of mattisssa/spotify-player can trigger bot actions by commenting:

  • @raycastbot close this issue Closes the issue.
  • @raycastbot close as not planned Closes the issue as not planned.
  • @raycastbot rename this issue to "Awesome new title" Renames the issue.
  • @raycastbot reopen this issue Reopens the issue.
  • @raycastbot assign me Assigns yourself to the issue.
  • @raycastbot good first issue Adds the "Good first issue" label to the issue.
  • @raycastbot keep this issue open Make sure the issue won't go stale and will be kept open by the bot.

@thomaslombart
Copy link
Collaborator

Could you share a recording? It'll make it easier to see what's happening.

@dxfan227
Copy link

dxfan227 commented Oct 2, 2024

Not sure if appropriate to add to this or open my own? Similar behavior but when utilizing the menu bar GUI. Play/Pause results in "Bad Gateway" . Next/Previous results in " Payer Command Failed: No Active Device Found"

@jpsirois
Copy link

I also started been getting this from time to time lately. I've tried to sign out and sign in the extension without success. I restarted my Spotify app and it started working again.

@hyejinie
Copy link
Author

hyejinie commented Oct 13, 2024

It seems like both play/pause toggles correctly for me now. However, on the 'now playing' interface (which I also use to toggle play/pause), it doesn't update upon toggling. I.e., upon toggling pause, the music does pause, but the command prompt still reads 'pause' rather than 'play'. Subsequent command to 'pause' causes an 'error, please reload' screen. Upon reloading, the toggle resets and shows the correct command prompt 'play'.

I get this error:

Error:

Error: Player command failed: Restriction violated

Jd:pause.ts:19:10

---
16:       return

@thomaslombart thomaslombart changed the title [Spotify Player] says "bad gateway" when play/pausing [Spotify Player] says "Bad gateway" or "Restriction Violated" when play/pausing Nov 22, 2024
@thomaslombart thomaslombart changed the title [Spotify Player] says "Bad gateway" or "Restriction Violated" when play/pausing [Spotify Player] Getting "Bad gateway" or "Restriction Violated" when play/pausing Nov 22, 2024
@thomaslombart thomaslombart added the Dont close Won't be closed by stalebot label Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Dont close Won't be closed by stalebot extension: spotify-player Issues related to the spotify-player extension extension Issues related to one of the extensions in the Store
Projects
None yet
Development

No branches or pull requests

5 participants