Generated "Service-remote" script nonfunctional; instantiating Client with
wrong number of arguments
----------------------------------------------------------------------------------------------------
Key: THRIFT-802
URL: https://issues.apache.org/jira/browse/THRIFT-802
Project: Thrift
Issue Type: Bug
Components: Compiler (Python)
Affects Versions: 0.2
Environment: Debian 5.0.1
Reporter: Christopher Armstrong
The script that's generated by the python (and Twisted) compiler for
interacting with the thrift service generates broken code.
For my service named SubscriptionService, it has the following line:
client = SubscriptionService.Client(protocol)
The problem is, the Client class takes two arguments: the 'transport' and the
'oprot_factory'. When invoking the script I get a traceback like this:
ra...@host:~$ .../SubscriptionService-remote -h localhost:5020 doAThing 1
Traceback (most recent call last):
File "/.../SubscriptionService-remote", line 80, in <module>
client = SubscriptionService.Client(protocol)
TypeError: __init__() takes exactly 3 arguments (2 given)
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.