extensions icon indicating copy to clipboard operation
extensions copied to clipboard

[Spotify Player] says "bad gateway" when play/pausing

Open hyejinie opened this issue 1 year ago • 5 comments

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 avatar Sep 23 '24 20:09 hyejinie

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.

raycastbot avatar Sep 23 '24 20:09 raycastbot

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

thomaslombart avatar Sep 30 '24 06:09 thomaslombart

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"

dxfan227 avatar Oct 02 '24 01:10 dxfan227

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

hyejinie avatar Oct 13 '24 01:10 hyejinie