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

Return supported query types for unsupported queries #360

Merged
merged 11 commits into from Feb 26, 2021

Conversation

vkoby
Copy link
Contributor

@vkoby vkoby commented Feb 23, 2021

Error: Query workflow failed.
Error Details: rpc error: code = InvalidArgument desc = java.lang.IllegalArgumentException: Unknown query type: queryGreeting123, knownTypes=[queryGreeting]

@vkoby vkoby merged commit 611de11 into master Feb 26, 2021
@vkoby vkoby deleted the return-supported-query-types branch February 26, 2021 00:59
@@ -75,7 +75,8 @@ public void setInboundCallsInterceptor(WorkflowInboundCallsInterceptor inboundCa
Object[] args;
if (handler == null) {
if (dynamicQueryHandler == null) {
throw new IllegalStateException("Unknown query type: " + queryName);
throw new IllegalArgumentException(
"Unknown query type: " + queryName + ", knownTypes=" + queryCallbacks.keySet());

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

could you comment a sample string of this output? I want to test with the web

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Query page broken after upgrading to 1.6.3 server
3 participants