Closed cthoyt closed 6 years ago
I noticed elsewhere in the code was checking if the last element is a 'status' then do something like cx.append({"status": [{"error": "", "success": True}]})
as in
Since the upload_to() and update_to() methods add the status to the stream this bug went unnoticed. I'll add the status to the to_cx() method.
ndex2 client v2.0.0 produces valid cx in the to_cx() method
I tried uploading a network generated exclusively through the NiceCXNetwork functions and a JSON like
and got the error from NDEx "Error parsing element in CX stream: CX document ends without a Status object defined at line: 1, column: 5182"
It appears that the NiceCXNetwork does not generate the Status aspect that needs to be the last entry in each CX stream. Am I misusing this functionality, or is there a reason to make an update to this exporter?