Rocket U2 | UniVerse & UniData

 View Only

 uopy.Subroutine maximum data size that can be passed as an argument

Illia Gron's profile image
Illia Gron posted 06-16-2022 17:40
Hello,
I am currently developing a tool which uses uopy to call uv subroutines on the server. The solution works perfectly well, until I am trying to pass a large amount of data as one of the arguments. 
I am getting the following error then:
.../uopy/_uniobject.py, line 29, in  _call_server#012 self._session.rpc_call(in_packet, out_packet, in_exec)#012#012 File  .../uopy/_session.py, line 200, in rpc_call#012  self._rpc_connection.call(in_packet, out_packet)#012#012 File  ..../uopy/_unirpc.py, line 72, in call#012  self._read_packet(in_packet)#012#012 File  .../uopy/_unirpc.py, line 123, in  _read_packet#012 in_packet.receive(self.rpc_socket)#012#012 File  .../uopy/_unirpc.py, line 252, in receive#012  self._unpack_header()#012#012 File .../uopy/_unirpc.py, line 398, in  _unpack_header#012 self.header_fields = unpack(_PACKET_MSG_HDR_FMT, self.header_buffer)#012#012struct.error:  unpack requires a buffer of 24 bytes#012#012#012
Is there a way to pass large amounts of data as arguments or will this always crash into buffer size issue?
Universe version -  11.3
uopy version - 1.2.0
Regards,
Illia Gron