Not getting results from docker api list tasks with filters

I am trying to find list of tasks using docker api. I am running the command as below

curl -v –connect-timeout 5 –max-time 10 –retry 5 ‘https://${DOCKER_URL}/tasks?filters={%22service%22:{%22test1%22}}’ | jq .
. When i run this I get curl: (3) [globbing] nested brace in column 51

I have tried other way also as below
curl -s -q –connect-timeout 5 –max-time 10 –retry 5 –data-urlencode ‘filters={"service":["test1"]}’ https://${DOCKER_URL}/tasks
{"message":"page not found"}

Can someone help us with this.



Source: Docker Questions