xsc / thrift-clj

Thrift and Clojure!
http://xsc.github.io/thrift-clj/
MIT License
65 stars 15 forks source link

No protocol version header #15

Open cassc opened 8 years ago

cassc commented 8 years ago

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()
peey commented 3 years ago

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