-
-
Notifications
You must be signed in to change notification settings - Fork 269
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
Error "Payload is set but no content-type header specified" when calling play() #175
Comments
Seems like a better fix is to add |
I think we could add a check on @this-username-is-taken I'll prepare a change, and maybe you can try it out. |
Thanks @JMPerez , I can confirm that this is now fixed! |
@this-username-is-taken awesome! |
Hi @quentin-sommer, you're right! I have just published 1.5.1 |
Thanks a lot |
Describe the bug
I'm seeing an issue where when I call
play()
without any parameters, I get an exception with the error message "Payload is set but no content-type header specified".To Reproduce
This reproduces every time I call
play()
. I am using React Native and reproducing this on an Android phone. Interestingly, I'm only seeing this forplay()
but notpause()
. I also have another project that uses React (instead of React Native) and runs in desktop Chrome and am not observing this issue.Additional context
Below is the full response returned by Spotify:
After some trial and error, I discovered that if I remove the line

postData: postData
fromrequest.Data
inplay()
, things will work fine:Despite the workaround, I'm still interested in getting to the bottom of this, and hopefully fix it in a non-hacky way if possible.
The text was updated successfully, but these errors were encountered: