-
Notifications
You must be signed in to change notification settings - Fork 89
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
feign.codec.DecodeException while parsing the healthcheck json while getting all VMs deployed on marathon #23
Comments
Now getting issue as: feign.codec.DecodeException: The JsonDeserializer StringTypeAdapter failed to deserialize json object {"value":"/usr/libexec/mesos/mesos-health-check"} given the type class java.lang.String init is done....not retrieving the list of vms |
@diwakar2015 Issue is fixed in my local repo. Yet to be merged by mohit. |
Thanks |
I'm getting a very similar error to the one in your original question. Any chance you remember what the deal was 8 years later? @diwakar2015 |
Hi Mohit,
I am using your 0.4.3-SNAPSHOT marathon-client jar for fetching all the apps deployed on our marathon.
But, I am seeing the following exception while retrieving the all apps.
feign.codec.DecodeException: The JsonDeserializer StringTypeAdapter failed to deserialize json object {"value":"if [ -f /var/www/html/health/active ]; then (exit 0); else (exit 1); fi"} given the type class java.lang.String
at feign.MethodHandler$SynchronousMethodHandler.decode(MethodHandler.java:183)
at feign.MethodHandler$SynchronousMethodHandler.executeAndDecode(MethodHandler.java:151)
at feign.MethodHandler$SynchronousMethodHandler.invoke(MethodHandler.java:105)
at feign.ReflectiveFeign$FeignInvocationHandler.invoke(ReflectiveFeign.java:87)
at com.sun.proxy.$Proxy6.getApps(Unknown Source)
at com.verizon.devops.control.webapp.service.MarathonInventoryServiceImpl.getNewAppList(MarathonInventoryServiceImpl.java:119)
while deploying the app,I had put the health check JSON as follows,
"healthChecks": [
{
"path": "/",
"protocol": "COMMAND",
"portIndex": 0,
"command": {
"value": "if [ -f /var/www/html/health/active ]; then (exit 0); else (exit 1); fi"
},
"gracePeriodSeconds": 300,
"intervalSeconds": 5,
"timeoutSeconds": 6,
"maxConsecutiveFailures": 10
}
]
Can you tell me how to fix this?? Red labelled line is causing an issue.
Thanks in advance.
The text was updated successfully, but these errors were encountered: