[GH-ISSUE #225] how i can resume current track? #157

Closed
opened 2026-02-27 19:26:22 +03:00 by kerem · 1 comment
Owner

Originally created by @esurkov1 on GitHub (Mar 13, 2021).
Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/225

Hi! Sorry for my english...
i call play function without options and speakerId and i see

<br /> <b>Fatal error</b>: Uncaught SpotifyWebAPI\SpotifyWebAPIException: Malformed json in MYSERVER/vendor/jwilsson/spotify-web-api-php/src/Request.php:57 Stack trace: #0 MYSERVER/vendor/jwilsson/spotify-web-api-php/src/Request.php(276): SpotifyWebAPI\Request-&gt;parseBody(Object(stdClass), 400) #1 MYSERVERMYSERVER/vendor/jwilsson/spotify-web-api-php/src/Request.php(138): SpotifyWebAPI\Request-&gt;send('PUT', 'https://api.spo...', 'false', Array) #2 MYSERVER/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(115): SpotifyWebAPI\Request-&gt;api('PUT', '/v1/me/player/p...', 'false', Array) #3 MYSERVER/spotify/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(1660): SpotifyWebAPI\SpotifyWebAPI-&gt;sendRequest('PUT', '/v1/me/player/p...', 'false', Array) #4 MYSERVER/alice.php(38): SpotifyWebAPI\SpotifyWebAPI-&gt; in <b>MYSERVER/vendor/jwilsson/spotify-web-api-php/src/Request.php</b> on line <b>57</b><br />

how i can resume track after pause?

i use script:
$api->play();

Originally created by @esurkov1 on GitHub (Mar 13, 2021). Original GitHub issue: https://github.com/jwilsson/spotify-web-api-php/issues/225 Hi! Sorry for my english... i call play function without options and speakerId and i see `<br /> <b>Fatal error</b>: Uncaught SpotifyWebAPI\SpotifyWebAPIException: Malformed json in MYSERVER/vendor/jwilsson/spotify-web-api-php/src/Request.php:57 Stack trace: #0 MYSERVER/vendor/jwilsson/spotify-web-api-php/src/Request.php(276): SpotifyWebAPI\Request-&gt;parseBody(Object(stdClass), 400) #1 MYSERVERMYSERVER/vendor/jwilsson/spotify-web-api-php/src/Request.php(138): SpotifyWebAPI\Request-&gt;send('PUT', 'https://api.spo...', 'false', Array) #2 MYSERVER/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(115): SpotifyWebAPI\Request-&gt;api('PUT', '/v1/me/player/p...', 'false', Array) #3 MYSERVER/spotify/vendor/jwilsson/spotify-web-api-php/src/SpotifyWebAPI.php(1660): SpotifyWebAPI\SpotifyWebAPI-&gt;sendRequest('PUT', '/v1/me/player/p...', 'false', Array) #4 MYSERVER/alice.php(38): SpotifyWebAPI\SpotifyWebAPI-&gt; in <b>MYSERVER/vendor/jwilsson/spotify-web-api-php/src/Request.php</b> on line <b>57</b><br />` how i can resume track after pause? i use script: `$api->play(); `
kerem closed this issue 2026-02-27 19:26:22 +03:00
Author
Owner

@jwilsson commented on GitHub (Mar 13, 2021):

Hey!
Are you using the latest version (4.2.2)? This exact issue was fixed in that version.

Cheers!

<!-- gh-comment-id:797927842 --> @jwilsson commented on GitHub (Mar 13, 2021): Hey! Are you using the latest version (`4.2.2`)? This exact issue was fixed in that version. Cheers!
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/spotify-web-api-php#157
No description provided.