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
Our error message that we write to the state index while provisioning don't have enough info.
For example if the user has a typo in the processor name this is the error we write
"org.opensearch.flowframework.exception.WorkflowStepException during step create_ingest_pipeline, restStatus: BAD_REQUEST"
we use WorkflowStepException to let us know the step itself is the reason for the error, but we don't propagate outside the logs the fact that the issue is that we don't have text_embedding processor available in the cluster.
Today if a user hits the create ingest pipeline API directly they get more information without having to look at the logs:
{
"error": {
"root_cause": [
{
"type": "parse_exception",
"reason": "No processor type exists with name [text_embeddinssg]",
"processor_type": "text_embeddinssg"
}
],
"type": "parse_exception",
"reason": "No processor type exists with name [text_embeddinssg]",
"processor_type": "text_embeddinssg"
},
"status": 400
}
We should potentially write the exception itself too to the state index, however there can be times where the exception exposes too much information
The text was updated successfully, but these errors were encountered:
The above exception is an OpenSearchException. These are designed to be returned to users. As a first step we should probably allow these exception messages to be passed through (along with their RestStatus)
One of the hacky ways to handle this before writing exceptions is to check which exceptions can not be safely exposed (such as those from RemoteTransportException) and, while adding the rest of the exceptions separately and include them in the error message.
What is the bug?
Our error message that we write to the state index while provisioning don't have enough info.
For example if the user has a typo in the processor name this is the error we write
we use WorkflowStepException to let us know the step itself is the reason for the error, but we don't propagate outside the logs the fact that the issue is that we don't have text_embedding processor available in the cluster.
Today if a user hits the create ingest pipeline API directly they get more information without having to look at the logs:
We should potentially write the exception itself too to the state index, however there can be times where the exception exposes too much information
The text was updated successfully, but these errors were encountered: