You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This log means your Function code had an unhandled error. Look at the Exception property and that should tell you the error that happened during execution.
This error is happening after the Trigger received the events and sent them to your Function code for execution.
There is no exception property so that makes it hard to find out the cause of this. Should there be an exception property normally?
I do see this behavior happening from multiple cosmosdb triggers at the same time. I don't see any logging from my own code so I think it does not even enter my code but already errors before that.
Maybe implementing my own middleware to catch the error and log it would give me more information
this.logger.LogWarning(Events.OnError,userException.InnerException,"Lease {LeaseToken} encountered an unhandled user exception during processing.",leaseToken);
It could be that Application Insights is storing them on the exceptions table.
Repro steps
Seems to happen randomly when using CosmosDbTriggers. When it happens it usually happens in a burst of warnings
Expected behavior
The cosmosdbtrigger invocation should work without errors.
Actual behavior
A 'Lease 0 encountered an unhandled user exception during processing.' warning is logged and the cosmosdbtrigger invocation fails.
Known workarounds
No workarounds that I know of
Related information
The text was updated successfully, but these errors were encountered: