marathon icon indicating copy to clipboard operation
marathon copied to clipboard

output from /v2/tasks is corrupted after scaling up

Open thereforsunrise opened this issue 12 years ago • 3 comments

Ran into a problem with /v2/tasks starting to return output like this after scaling:

rufus:src:% curl -H "Content-Type: application/json" --socks5-hostname localhost:9999 http://hwd1-mesos-01:8080/v2/tasks

devint-widgetshop-api 0 hwd1-dock-59:31000 hwd1-dock-61:31012 hwd1-dock-59:31008 hwd1-dock-59:31002 hwd1-dock-61:31011 hwd1-dock-60:31005 hwd1-dock-59:31004....

This caused our load balancer config script to fail as it expected JSON. This endpoint was returning JSON before. Other endpoints (/apps) and the UI work as expected.

Let me know if you need anything else.

Update: okay after changing the curl to..

curl -H 'Accept: application/json' -H "Content-Type: application/json" http://hwd1-mesos-03:8080/v2/tasks

..it works as expected. It was behaving inconsistently though.

thereforsunrise avatar Nov 14 '14 14:11 thereforsunrise

@zaargy, can you clarify whether you're able to reproduce the wrong response content type with the accept header properly set in the request?

ConnorDoyle avatar Nov 14 '14 19:11 ConnorDoyle

Please report back if you can reproduce the inconsistent behavior. Also, it looks like you dropped the --socks5-hostname option.

ConnorDoyle avatar Nov 17 '14 23:11 ConnorDoyle

Please re-open if problem persists

Ferdiism avatar May 29 '15 13:05 Ferdiism