Skip to content

Not able to execute policy

Description:

The Task service can not execute a policy.

Steps to reproduce:

  • make a call to the task service using the didResolver policy curl --location '{URL}/tsa/task/v1/task/didResolve' \ --header 'Content-Type: application/json' \ --data '{ "did": "did:key:z6Mkfriq1MqLBoPWecGoDLjguo1sB9brj6wT3qZ5BxkKpuP6" }'
  • get the taskID and make a call to get the result curl --location '{URL}/tsa/task/v1/taskResult/{taskID}'

Expected result:

{
    "kty":"OKP",
    "crv":"Ed25519",
    "x":"FN5URrQRnKSaEjQvC8e6vpNGxivoocgPLgmzv_5JH2k"
}

Actual result:

{
    "id": "...",
    "kind": 5,
    "message": "task is not found"
}

Logs:

{
    "caller":"executor/worker.go:73",
    "msg":"error executing task",
    "taskName":"didResolve",
    "error":"error evaluating request policy: unexpected response on policy evaluation: 404"
}
{
    "caller":"executor/worker.go:66",
    "msg":"task removed from queue due to too many failed executions",
    "taskName":"didResolve"
}