Closed iddar closed 1 year ago
Thanks for opening this issue! However this is a duplicate of an existing issue #18751, so I'll proceed to close this but if you think this is actually a different issue, then please do not hesitate to comment. The existing issue #18751 has been fixed by #18777 which will be available with the next release.
Describe the Bug
I would like to report a bug in the Directus.io flows editor. I have encountered an issue with error handling, logging, and execution in operations of type "run script". When a script fails, the flow breaks without proper error handling, no corresponding log entry is created in the system logs, and the subsequent blocks attached to the error block are not executed. Below are the details of the error:
Error code and stacktrace:
Expected behavior:
The flow should handle errors in the "run script" operation gracefully, providing a proper error message, and executing the subsequent blocks attached to the error block. Additionally, a corresponding log entry should be created in the system logs to track the failed operation.
Additional Information:
Response from the "run script" operation:
Any assistance or updates regarding this issue would be greatly appreciated. If you require additional information or further testing, I am available to collaborate in resolving this bug.
To Reproduce
Steps to reproduce the issue:
Add a "run script" operation with the following code:
Directus Version
10.2.1
Hosting Strategy
Self-Hosted (Docker Image)