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
When an exception is thrown from a function (ASB trigger) and is caught and handled in the custom middleware, the exception Source is set incorrectly to the middleware rather than the throwing function.
The source (1) is the namespace rather than the location where the exception was thrown, as indicated in the StackTrace (2)
SeanFeldman
changed the title
Exception from trigger has incorrect exception.Source
Exception thrown from a trigger and caught in the middleware has incorrect Source value
Feb 5, 2024
Description
When an exception is thrown from a function (ASB trigger) and is caught and handled in the custom middleware, the exception Source is set incorrectly to the middleware rather than the throwing function.
![image](https://private-user-images.githubusercontent.com/1309622/302379668-3598a918-7132-4bd2-9649-b1a5954c4467.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjIyODA0MzIsIm5iZiI6MTcyMjI4MDEzMiwicGF0aCI6Ii8xMzA5NjIyLzMwMjM3OTY2OC0zNTk4YTkxOC03MTMyLTRiZDItOTY0OS1iMWE1OTU0YzQ0NjcucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDcyOSUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA3MjlUMTkwODUyWiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9YTIyN2M5ZWU1ZGM2ZDQyZWY1MGE1N2M0ODJhMmQ2YzFjNTk2NTM2Y2M3ZmUwZjE2ZWY2MTMwYjJhMjFmZjU1NyZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.huQ3UwSil-xU7kf4FkxtPBB-8s491FdCKey_Enbva4k)
The source (1) is the namespace rather than the location where the exception was thrown, as indicated in the StackTrace (2)
Steps to reproduce
Function
Middleware
The text was updated successfully, but these errors were encountered: