-
Notifications
You must be signed in to change notification settings - Fork 79
https://api.spotify.com/v1/me/player/next error #859
Comments
Hi! Try setting |
Thanks, It's solved. |
I do indeed see "411 Length Required". Please fix this issue or the documentation. Thank! Thanks @onemanbucket - I'll give that a try. I'm wondering whether they expect length to be the seconds played on the previous song or similar. It's something I've seen for other streaming services' APIs. |
BTW: I'm getting the same for other |
@michaelherger the |
+1. I'm also getting it for
Update: I've set a Update2: Here's a stack trace example for the
|
Setting it to 0 did work for me, too. To be fair these calls are still clearly labeled beta, with a warning that they could change any time. See https://beta.developer.spotify.com/documentation/web-api/reference/player/ |
This is caused by an infrastructure change in the webapi load balancer, it's now behind a google https load balancer, which will reject illegal requests according to these rules: https://cloud.google.com/compute/docs/load-balancing/http/#illegal_request_handling @BloodShura your request looks correct, can you provide a reproducable example and i'll investigate |
Thanks @onemanbucket! This might explain why I was failing: https://stackoverflow.com/questions/1233372/is-an-http-put-request-required-to-include-a-body |
@onemanbucket I managed to fix it! If anyone else is also setting a Behind the scenes, I'm using the Java's HTTP API ( The problem is: since some of these endpoints (like Then what I did was, convert the request to a "with-body" request (which will vary on which higher-level API you're using afterall), but without writing anything to the connection's output stream. This way, the output stream is opened, nothing is written, then the Java's API correctly sets a |
that's great! looks like we can close this ticket |
Issue found on May 2rd 2018.
Endpoint(s):
--
Actual behaviour:
411 Server Error (consistently)
However I can't find the information about this error
The text was updated successfully, but these errors were encountered: