Closed ghost closed 4 years ago
目前 node 客户端不支持 hessian4,后面会支持的
计划什么时候支持呢?
5月底吧,抽空搞下
https://github.com/sofastack/sofa-bolt-node/pull/11
这个合并以后支持
const protocol = require('sofa-bolt-node');
protocol.setHessianVersion('4.0');
const { RpcClient } = require('sofa-rpc-node').client;
const client = new RpcClient({
logger: console,
protocol,
});
安装 egg-sofa-rpc@3.0.0
// config.default.js
exports.rpc = {
hessianVersion: '4.0',
};
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
Expected behavior A clear and concise description of what you expected to happen.
Screenshots If applicable, add screenshots to help explain your problem.
Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context Add any other context about the problem here.
服务端使用默认hessian3序列化版本,用node客户端去调用服务端,服务端可以正常接收请求,并返回, 但是当服务端hessian版本换成4的话,使用原来的node代码去调用的时候,出现异常,服务端未收到请求,我猜是序列化的问题,以下是错误日志:
,寻求专业解答。