spearmunkie
spearmunkie

Reputation: 21

How do I start a thrift server in Scala?

I have a thrift service implemented in scala that I would like to serve. I'm using scrooge with finagle for the server. It seems to be running fine, however, whenever I try to connect a client and actually do an RPC, the client and the server seems to not do anything. My client is written in python, and I'm using thriftpy. This is how I currently start my server in scala:

val service = Thrift.serveIface("localhost:3000", new imple)
Await.ready(service)

EDIT

After some playing around, I got the finagle client to do an RPC. However, I am unable to connect my Finagle client to a python server. This is the error that my python server throws:

cybin.ProtocolError: No protocol version header

Upvotes: 1

Views: 572

Answers (0)

Related Questions