thrift-clj icon indicating copy to clipboard operation
thrift-clj copied to clipboard

No protocol version header

Open cassc opened this issue 8 years ago • 1 comments

Thanks for your great work! I encountered a problem and not sure what is the reason. I am using :binary protocol. It works well with Clojure server and client. But when trying with thriftpy client, it throws the error: cybin.ProtocolError: No protocol version header.

Below is the python client code I am trying. It works with the Java thrift server, but not Clojure server with thrift-clj.

import thriftpy
from thriftpy.rpc import make_client
api_thrift = thriftpy.load("./idl/api.thrift", module_name="myapi_thrift")
api_service = make_client(api_thrift.AService, '192.168.0.2', 9011)
print api_service.ping()

cassc avatar Oct 31 '16 09:10 cassc

This should be reported to thriftpy and not here, they should send the protocol header correctly.

peey avatar Nov 28 '20 19:11 peey