yl-yue commented on issue #9342:
URL: https://github.com/apache/dubbo/issues/9342#issuecomment-986390518
> @yl-yue Only RpcException can be thrown in the filter. Please provide an
example of garbled characters. I think the second problem needs to be fixed.
filter throw exception:
```java
@Activate(group = CommonConstants.PROVIDER)
public class TokenFilter implements Filter {
@Override
public Result invoke(Invoker<?> invoker, Invocation inv) {
throw new RpcException("错误的token");
}
}
```
result:
```json
{
"error": "13 INTERNAL: Exception in invoker chain :???token"
}
```
Whether a Filter throw Exception or another throw exception, any message
containing Chinese will be interpreted as garbled(`?`)
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]