errors in activity functions does not throw a FunctionFailedException back to the orchestrator function #2990
Labels
out-of-proc
Impacts non-.NET languages (e.g. JavaScript, Python, or PowerShell) which execute out-of-process
P1
Priority 1
Description
With python, errors in activity functions does not throw a FunctionFailedException back to the orchestrator function. It throws a raw/system exception that must be parsed, that is quite complex to analyze...
Expected behavior
Implement what is documented in Azure Durable doc :
https://learn.microsoft.com/en-us/azure/azure-functions/durable/durable-functions-error-handling?tabs=python#errors-in-activity-functions
Azure Durable framework should provide a FunctionFailedException that should allow to easly identify the inner exception that was raised by the activity function.
Actual behavior
A raw/system exception is reported. We have to parse with somethings like that get the initial message.
Relevant source code snippets
Known workarounds
see snippet above that is actually easy to break if Azure Durable Function change the way that they report the exception
App Details
Screenshots
Inside application insigths, we can see such message:
Exception while executing function: Functions.entity_function_name.....
{"$type":"System.Exception, System.Private.CoreLib","ClassName":"System.Exception","Message":"".....
The text was updated successfully, but these errors were encountered: