1.null (http status: 422)
mesosphere.marathon.client.MarathonException: null (http status: 422)
at mesosphere.marathon.client.MarathonClient$MarathonErrorDecoder.decode(MarathonClient.java:30)
at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:134)
at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:76)
at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103)
at com.sun.proxy.$Proxy67.createApp(Unknown Source)
at com.yidian.data.commons.utils.MarathonUtils.createApp(MarathonUtils.java:124)
原因1:App的id中不能包含下划线‘_’,具体提示信息如下:
{
"message": "Invalid JSON",
"details": [
{
"path": "/id",
"errors": [
"error.pattern"
]
}
]
}
原因2:env的值必须是字符串,具体提示信息如下:
{
"message": "Invalid JSON",
"details": [
{
"path": "/env/PS_VERBOSE/secret",
"errors": [
"error.path.missing"
]
}
]
}
2.Conflict (http status: 409)
mesosphere.marathon.client.MarathonException: Conflict (http status: 409)
at mesosphere.marathon.client.MarathonClient$MarathonErrorDecoder.decode(MarathonClient.java:30)
at feign.SynchronousMethodHandler.executeAndDecode(SynchronousMethodHandler.java:134)
at feign.SynchronousMethodHandler.invoke(SynchronousMethodHandler.java:76)
at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:103)
at com.sun.proxy.$Proxy70.createApp(Unknown Source)
at com.yidian.data.commons.utils.MarathonUtils.createApp(MarathonUtils.java:154)
原因:已存在ID相同的App