Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Fixed
-
0.13.0, 0.15.0
-
None
-
None
-
Ubuntu 20.04 LTS
Python 3.8
Description
I am writing a C++ Thrift Server, and successfully utilizing it via a Python Client up until today.
// bunch of stuff, including the Definitions for the Objects, Exceptions service mythrift { i32 ping() throws (1:CUSTOMException error), list<string> status() throws (1:CUSTOMException error), list<CustomResponse> request_forstuff(1:list<CUSTOMObject> request_objectss, 2:string some__type) throws (1:CUSTOMException error) }
print("Testing my-thrift client...") my_client = MYThriftClient().connect_to_thrift_server(thrift_host="127.0.0.1") print("ping! total client pool size = " + str(my_client.ping())) print("my_status = " + str(my_client.status())) objects_to_request = get_some_objects() myresult = my_client.send_request_forstuff(objects_to_request, "SOMETYPE") print("MYRESULT = " + str(myresult)) print("my_status = " + str(my_client.my_status()))
What is strange is, this API call was working in past.. but suddenly my Python Client is returning immediately .. even though I'm expecting a `list<CustomObjs>` to come back..
Testing my-thrift client... ping! total client pool size = 1 my_status = ['MY_Status == pool->size() == 1, idle() == 1, busy() == 0'] MYRESULT = None <after this it hangs>
Posted also in StackOverflow in case the community there has any ideas
https://stackoverflow.com/questions/71100680/python-thrift-client-immediately-returning-before-result-can-be-calculated
Other calls returning lists of standard things like String, work just fine.. it is only this custom object list call which seems to fail..
Any ideas how to debug or proceed? no matter what I code in the Server Side it just comes back `None` in Python Client
tried `V0.13.0` and upgraded to `V0.15.0`