Closed christianemmert closed 1 year ago
FYI @hossam-nasr
The problem is in https://github.com/Azure/azure-functions-durable-js/blob/2857fc579ba61b91673e5a4b259bf9ce2386bd1c/src/durableorchestrationclient.ts#L229. When no instance is found the client will return a status code of 404 as such response.data
won't have the shape of DurableOrchestrationClient
but rather an empty string.
Fixed by #512
Describe the bug
DurableOrchestrationClient
interface states thatgetStatus()
returnsPromise<DurableOrchestrationStatus>
. This is correct for instances that exist and weren't purged. But for purged instancesgetStatus()
returns an empty string. This is highly unexpected and should be fixed.Investigative information
To Reproduce Steps to reproduce the behavior:
Expected behavior Interface of
DurableOrchestrationClient.getStatus()
represents the actual ReturnType of the method.