-
Notifications
You must be signed in to change notification settings - Fork 1k
[Plugin RpcServer] fix issue 3629 #3630
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
Conversation
| args[i] = param.DefaultValue; | ||
| } | ||
| else if (param.ParameterType.IsValueType && Nullable.GetUnderlyingType(param.ParameterType) == null) | ||
| else if (param.ParameterType.IsValueType && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
these are made automatically by dotnet format.
| catch (RpcException ex) | ||
| { | ||
| return CreateErrorResponse(request["id"], ex.GetError()); | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
core update is here
Hecate2
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
May be better if ParameterConverter.ConvertParameter throws something else, instead of RpcException.
roman-khimov
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's gonna be the HTTP return code this way? 200?
200 with an error code like -32602 in the json response body |
superboyiii
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
|
LGTM |


Description
This pr fixes #3629 to handle rpcexception catch.
Fixes # #3629
Type of change
How Has This Been Tested?
Test Configuration:
Checklist: