-
Notifications
You must be signed in to change notification settings - Fork 92
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
startOrResume throws error code 400 (malformed json) #185
Comments
I used Flutter DevTools to inspect the network requests and it appears all fine. It's sending a simple PUT request to: Comparing to the sample request in the Spotify docs it looks the same AFAICT. I kept the request body empty for both of them. |
@adamkoch So far there are no debug tools in this library. However, this is a good idea. I'll create another issue for this. |
To follow up, I found the issue was that: Adds an empty request body of "". Which Spotify considers a malformed request which is why it's not working. I looked over the code but couldn't find where to have it return an empty body when there are no parameters supplied. If you have any code pointers please let me know. |
Perhaps here, default is to set body to empty string vs null: |
Fix is released with v0.13.4! |
When I call
startOrResume()
I am getting error 400:Is there a way to turn on debug logging so I can see the actual http requests being sent out and see what the issue is with the request?
Additional info:
The text was updated successfully, but these errors were encountered: