epam / Indigo

Universal cheminformatics toolkit, utilities and database search tools
http://lifescience.opensource.epam.com
Apache License 2.0
291 stars 100 forks source link

'/v2/indigo/render' endpoint throws exception #347

Open AndreiMazol opened 3 years ago

AndreiMazol commented 3 years ago

Steps to reproduce:

  1. Execute 'render' method with the following arguments: struct: struct.txt

options: { "smart-layout": true, "ignore-stereochemistry-errors": true, "mass-skip-error-on-pseudoatoms": false, "gross-formula-add-rsites": true, "outputFormat": "svg" }

Expected result: Base64 string is generated without any exceptions

Actual result: 500 HTTP code is gotten with the following description: { "error": "'NoneType' object has no attribute 'loadMolecule'" }

AlexanderSavelyev commented 3 years ago

@AndreiMazol please insert molfiles as txt files (the examples above are corrupted)

even1024 commented 3 years ago

outputFormat is not an indigo option. Use render-output-format instead.

f1nzer commented 3 years ago

Maybe it might be a good idea to have validation for parameters or something like that to prevent similar issues in future (if there is no such feature already 😃)

AndreiMazol commented 2 years ago

Issue is still reproduced:

  1. Image generation does not work for PNG output format
  2. Different responses in Remote/Standalone modes
even1024 commented 2 years ago

not reproduced

AllaZhbanova commented 2 years ago

The issue is still reproducible. The structure can not be saved in PNG. 2021-12-15_13h57_33