mirror of
https://github.com/spotipy-dev/spotipy.git
synced 2026-04-26 16:15:51 +03:00
[GH-ISSUE #767] Getting malformed JSON error when passing playlist as a uri_context #466
Labels
No labels
api-bug
bug
dependencies
documentation
duplicate
enhancement
external-ide
headless-mode
implicit-grant-flow
invalid
missing-endpoint
pr-welcome
private-api
pull-request
question
spotipy3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotipy#466
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @captpanther on GitHub (Jan 4, 2022).
Original GitHub issue: https://github.com/spotipy-dev/spotipy/issues/767
When supply a uri_context and an offset to the start_playback method I receive an error 400 stating malformed JSON
code
Additional Testing
What I expect is the song at the specified index of the supplied playlist to start playing, I tested the context uri on the spotify developer dashboard and it worked without issue
Error in console
My Environment:
Not sure what I might be doing wrong, but any help is greatly appreciated
@captpanther commented on GitHub (Jan 4, 2022):
Ok, I was able to get this working, not sure if this a bug or just a change in the API request format, however the parameter for offset must be nested, this is what I have come up with that seem to address the problem if you need to supply an offset:
@Peter-Schorn commented on GitHub (Jan 4, 2022):
The documentation for
start_playbackspecifically says:@captpanther commented on GitHub (Jan 4, 2022):
I must have overlooked that, my brain is on info overload, but thanks for pointing that out