Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error message missing in the popup dialog #22420

Open
ninogjoni opened this issue May 7, 2024 · 2 comments · May be fixed by #22379
Open

Error message missing in the popup dialog #22420

ninogjoni opened this issue May 7, 2024 · 2 comments · May be fixed by #22379

Comments

@ninogjoni
Copy link
Contributor

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:
image

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)

@paescuj
Copy link
Member

paescuj commented May 7, 2024

Will be fixed by #22379.

@robinsonjohn

This comment was marked as duplicate.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: 🆕 Needs Triage
Development

Successfully merging a pull request may close this issue.

3 participants