omnip620 / node-zookeeper-dubbo

A middleware helps node to communicate dubbo by using its default protocol, which is registered in zookeeper
300 stars 80 forks source link

疑似 Bug: Unknown result flag, expect '0' '1' '2', get 4 #108

Open youthlin opened 5 years ago

youthlin commented 5 years ago

这里 判断返回值时只有 0 1 2 三种情况,但是运行 demo 时发现返回的是 4.

dubbo-js 里有 3 4 5 的情况

//body response status
enum DUBBO_RESPONSE_BODY_FLAG {
  RESPONSE_WITH_EXCEPTION = 0,
  RESPONSE_VALUE = 1,
  RESPONSE_NULL_VALUE = 2,
  //@since dubbo2.6.3
  RESPONSE_WITH_EXCEPTION_WITH_ATTACHMENTS = 3,
  RESPONSE_VALUE_WITH_ATTACHMENTS = 4,
  RESPONSE_NULL_VALUE_WITH_ATTACHMENTS = 5,
}
h1orz commented 3 years ago

node-zookeeper-dubbo-plus 解君愁,但是没有处理attachments。