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
An error message should appear in the data studio popup when a flow triggers an error. Nevertheless, it actually shows the error message when I provoke an error with postman.
Data Studio:
Postman result:
{
"data": {
"update_report_strings_item": null
},
"errors": [
{
"message": "Validation failed: The value 'Hello World' does not match the regex pattern '^[A-HJ-NPR-Z0-9]{7}$'.",
"extensions": {
"code": "INTERNAL_SERVER_ERROR"
},
"locations": [
{
"line": 2,
"column": 5
}
],
"path": [
"update_report_strings_item"
]
}
]
}
To Reproduce
Create a flow, add a 'Run Script' and implement a throw Error statement.
For example:
module.exports = async function(data) {
throw new Error(`Validation failed: The value '${valueToValidate}' does not match the regex pattern '${regexPattern}'.`);
return {
data
};
}
Directus Version
v10.10.7
Hosting Strategy
Self-Hosted (Docker Image)
The text was updated successfully, but these errors were encountered:
Describe the Bug
An error message should appear in the data studio popup when a flow triggers an error. Nevertheless, it actually shows the error message when I provoke an error with postman.
Data Studio:
Postman result:
To Reproduce
Create a flow, add a 'Run Script' and implement a throw Error statement.
For example:
Directus Version
v10.10.7
Hosting Strategy
Self-Hosted (Docker Image)
The text was updated successfully, but these errors were encountered: