C# で記述されたクライアントでこのエラーが発生します。私のサーバーはpythonです。これは、thrift を使用した最初のテスト プログラムです。私のpythonサーバーが実行されているようです。これが私のクライアントコードです。「Client.add(2,3)」を呼び出している場所でこのエラーが発生します
static void Main(string[] args)
{
try
{
var socket = new TSocket("localhost", 9089);
var transport = new TBufferedTransport(socket);
var protocol = new TBinaryProtocol(transport);
var client = new CalculatorService.Client(protocol);
transport.Open();
if (transport.IsOpen)
{
//I am seeing this message
Console.WriteLine("server is open for business");
}
Console.WriteLine(client.add(2, 3)); //this is the line that gives me the error
transport.Close();
}
catch (Exception ex)
{
Console.WriteLine(ex.Message);
}
どんな助けでも大歓迎です。