OK, solved!
if anyone is interested i found the solution here.
And it was to add application/json to content type in tasker