Closed christianemmert closed 1 year ago
@microsoft-github-policy-service agree
Hi @christianemmert ,
Thank you so much for your contribution!
As others have pointed out, this would be a breaking change, so this change would have to be done on the new preview v3.x
version. This is definitely a bugfix that we would like to see happen in v3.x
, but I am uncomfortable accepting this change as-is without more manual testing and investigation. This PR would throw an error any time the client receives a 400, 404, or 500 response. But, there are still cases where those status codes contain valid DurableOrchestrationStatus
objects that we should pass back to the user. We receive 400 when the instance failed or terminated, 404 when the instance is pending, and 500 when the instance failed with an unhandled exception.
There are two parts I see here:
DurableOrchestrationStatus
DurableOrchestrationStatus
, but isn't for some reason. So we need to investigate the cases in which an empty response is returned, and identify if that's expected behavior or a bug that should be fixed on the extension side.Based on this, I'll go ahead and close this PR. The good news is that with the preview announcement of v3.x
today, we should have more time to investigate this further and apply a fix!
DurableOrchestrationClient.getStatus
when noresponse.data
is sent back by the client e.g. no instance found or instance is purgedResolves #486