weixin_39913422
weixin_39913422
2020-12-26 13:33

sofa node作为客户端,调用使用hessian4的版本的服务端,出现异常

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: 1. Go to '...' 2. Click on '....' 3. Scroll down to '....' 4. See error

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): - OS: [e.g. iOS] - Browser [e.g. chrome, safari] - Version [e.g. 22]

Smartphone (please complete the following information): - Device: [e.g. iPhone6] - OS: [e.g. iOS8.1] - Browser [e.g. stock browser, safari] - Version [e.g. 22]

Additional context Add any other context about the problem here.

服务端使用默认hessian3序列化版本,用node客户端去调用服务端,服务端可以正常接收请求,并返回, 但是当服务端hessian版本换成4的话,使用原来的node代码去调用的时候,出现异常,服务端未收到请求,我猜是序列化的问题,以下是错误日志: image,寻求专业解答。

该提问来源于开源项目:sofastack/sofa-rpc-node

  • 点赞
  • 回答
  • 收藏
  • 复制链接分享

5条回答