Hi,  Please check whether the calling result of the Dubboplug is garbled

Object result = alibabaDubboProxyService.genericInvoker(param, metaData);


> 2021年5月24日 下午4:26,sdf <[email protected]> 写道:
> 
> 
> 
> 
> Direct requests to the dubbo service without going through the gateway will 
> not mess up the code, only requests through shenyu will mess up the code
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 在 2021-05-24 16:04:02,"XiaoYu" <[email protected]> 写道:
>> Hi sdf
>> 
>> in DubboResponsePlugin,  the result provide by Apache dubbo,
>> 
>> You can see if this result has been garbled.  code like this :
>> 
>> final Object result = exchange.getAttribute(Constants.DUBBO_RPC_RESULT);
>> 
>> 
>> 
>> sdf <[email protected]> 于2021年5月24日周一 下午3:49写道:
>> 
>>> 
>>> 
>>> 
>>> soul tuning dubbo backend service response message Chinese messy code
>>> 
>>> 
>>> soul version 2.3.0
>>> dubbo backend service dubbo version is 2.7.6
>>> 
>>> 
>>> Direct access to the dubbo interface returns the following message, with
>>> errorMsg displayed normally
>>> 
>>> 
>>>>> {
>>>>>  "msg": "SUCCESS",
>>>>>  "code": "0000",
>>>>>  "flag": "S",
>>>>>  "data": {
>>>>>    "orderId": "367131013865906176",
>>>>>    "orderStatus": 1,
>>>>>    "signUrl": null,
>>>>>    "externalOrderId": "311212112312313",
>>>>>    "originalUrl": "",
>>>>>    "templateId": 20002,
>>>>>    "errorMsg": "成功"
>>>>>  }
>>> 
>>>>> }
>>> 
>>> 
>>> Access to the back-end interface via soul
>>> 
>>> 
>>>>> {
>>>>>  "msg": "SUCCESS",
>>>>>  "code": "0000",
>>>>>  "flag": "S",
>>>>>  "data": {
>>>>>    "orderId": "367131013865906176",
>>>>>    "orderStatus": 1,
>>>>>    "signUrl": null,
>>>>>    "externalOrderId": "311212112312313",
>>>>>    "originalUrl": "",
>>>>>    "templateId": 20002,
>>>>>    "errorMsg": "??"
>>>>>  }
>>>>> }
>>> Code Trace Discovery
>>> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
>>> 
>>> The result of the execution is already garbled, and still not solved by
>>> urldecode transcoding
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 
>>> 在 2021-05-24 15:33:11,"Zhang Yonglun" <[email protected]> 写道:
>>>> Hi,
>>>> 
>>>> Can you translate your question to English?
>>>> 
>>>> --
>>>> 
>>>> Zhang Yonglun
>>>> Apache ShenYu (Incubating)
>>>> Apache ShardingSphere
>>>> 
>>>> 
>>>> sdf <[email protected]> 于2021年5月24日周一 下午3:30写道:
>>>> 
>>>>> soul 版本 2.3.0
>>>>> dubbo后端服务 dubbo版本为 2.7.6
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 
>>>>> 直接访问dubbo接口返回报文如下,errorMsg 正常显示
>>>>> 
>>>>> 
>>>>> {
>>>>>  "msg": "SUCCESS",
>>>>>  "code": "0000",
>>>>>  "flag": "S",
>>>>>  "data": {
>>>>>    "orderId": "367131013865906176",
>>>>>    "orderStatus": 1,
>>>>>    "signUrl": null,
>>>>>    "externalOrderId": "311212112312313",
>>>>>    "originalUrl": "",
>>>>>    "templateId": 20002,
>>>>>    "errorMsg": "成功"
>>>>>  }
>>>>> }
>>>>> 
>>>>> 
>>>>> 通过soul 访问后端接口
>>>>> 
>>>>> 
>>>>> {
>>>>>  "msg": "SUCCESS",
>>>>>  "code": "0000",
>>>>>  "flag": "S",
>>>>>  "data": {
>>>>>    "orderId": "367131013865906176",
>>>>>    "orderStatus": 1,
>>>>>    "signUrl": null,
>>>>>    "externalOrderId": "311212112312313",
>>>>>    "originalUrl": "",
>>>>>    "templateId": 20002,
>>>>>    "errorMsg": "??"
>>>>>  }
>>>>> }
>>>>> 
>>>>> 
>>>>> 代码跟踪 发现
>>>>> 
>>> org.dromara.soul.plugin.dubbo.common.response.DubboResponsePlugin#execute
>>>>> 执行的result 就已经是乱码,通过urldecode 转码仍然没解决,求助~~~
>>> 

Reply via email to