mesosphere / marathon

Deploy and manage containers (including Docker) on top of Apache Mesos at scale.
https://mesosphere.github.io/marathon/
Apache License 2.0
4.07k stars 845 forks source link

POST to /v2/apps on non-leader doesn't work #2227

Closed eguven closed 9 years ago

eguven commented 9 years ago

This is the same issue as https://github.com/mesosphere/marathon/issues/1239 where you get

415 {"message":"Unsupported Media Type"}

the suggestion there (setting "Content-Type: application/json") works as a workaround.

gomes commented 9 years ago

But it's not the same, when you are posting something, you have to explicit say what is your data. So, your workaround is the right way to do.

The example in doc https://mesosphere.github.io/marathon/docs/rest-api.html#post-v2-apps

eguven commented 9 years ago

This was not happening on leader though.

kolloch commented 9 years ago

This should be fixed on 0.11. Generally, I would recommend a "Content-Type" header, though, to be standard compliant.