Skip to content

Conversation

@rodrigozhou
Copy link
Contributor

What changed?
Convert query.ConverterError to serviceerror.InvalidArgument.

Why?
Query converter error should be non-retryable as it's from an user input.
Converting the error to serviceerror.InvalidArgument does the trick.

How did you test it?
Started local server, and tried submitting List request through temporal CLI with invalid query, and now it returns the error message from query converter instead of context deadline exceeded message.

Potential risks
No risks.

Is hotfix candidate?
No.

@rodrigozhou rodrigozhou merged commit 4c47aec into temporalio:master Mar 10, 2023
@rodrigozhou rodrigozhou deleted the convert-query-converter-error branch March 10, 2023 01:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants