feiyuw / dubbo-py

Dubbo(Hessian2) protocol codec and provider/consumer library
BSD 2-Clause "Simplified" License
15 stars 4 forks source link

python调用java的dubbo服务返回报错undecoded! #9

Open wangbin117241030 opened 3 years ago

wangbin117241030 commented 3 years ago

python 客户端代码

arg = new_object(
    'org.apache.dubbo.samples.User',
    name='sssssss',
    age=10
    )
print(arg)

resp = client.send_request_and_return_response(
    service_name='org.apache.dubbo.samples.api.GreetingsService',
    method_name='sayHiOjb',
    args=[arg])

print(resp.ok)   # False
print(resp.data)  # None
print(resp.error)  # division by zero

返回错误信息 WARNING:root:bytes "b'056e6968616f4805647562626f05322e302e325a'" undecoded!

feiyuw commented 3 years ago

出现undedcoded warning表示收到的数据包按照逻辑解析完之后还有内容,如果方便抓包的话,可以把收发两端的报文发我分析下。