cytoscape / diffusion

A Cytoscape app to interface with the heat diffusion service
3 stars 5 forks source link

Unexpected character error when column is "text" #1

Closed bdemchak closed 7 years ago

bdemchak commented 7 years ago

Mostly, the service is working as expected, however, I was trying to diffuse on this network:

http://www.ndexbio.org/#/newNetwork/50e3dff7-133e-11e6-a039-06603eb7f303

and cytoscape threw "Cytoscape Task" "Unexpected character ("<"(code 60)): expected a valid value (number, String, array, object, 'true', 'false' or 'null') ...

Daniel found that deleting the "Text" edge column, which contained fields with the '<' character, allowed the service to work. This leads me to believe that the fields are not being handled quite right somewhere in the conversion with regard to handling special characters.

bdemchak commented 7 years ago

Calling Diffusion still crashes. I used The RAS Machine network

image

The_RAS_Machine.cx.txt

ericsage commented 7 years ago

The RAS machine and other networks imported via CXIO are not checked for proper UTF encoding, the service only accepts valid JSON, which must be properly UTF encoded Unicode.