epam / ketcher

Web-based molecule sketcher
https://lifescience.opensource.epam.com/ketcher/demo.html
Apache License 2.0
496 stars 171 forks source link

The error message "TypeError: Failed to fetch is displayed" in the pop-up window after clicking on the "Calculated Values" to the Atom with added Isotope value #1433

Open ZhannaNovikova opened 2 years ago

ZhannaNovikova commented 2 years ago

Steps to Reproduce

  1. Launch Ketcher
  2. Create structure
  3. Double-click any Atom with the Selection Tool
  4. Enter any value to the "Isotope" field in the Atom Properties
  5. Click on the "OK" button
  6. Click on the "Calculated Values" icon on the top menu

Expected behavior Calculate Values is performed successfully with no errors

Actual behavior

Access to fetch at 'http://52.32.91.31/v2/indigo/calculate' from origin 'http://localhost:4001' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. If an opaque response serves your needs, set the request's mode to 'no-cors' to fetch the resource with CORS disabled.

POST http://52.32.91.31/v2/indigo/calculate net::ERR_FAILED 502

Note: The issue is reproducible in the Remote mode

Screenshots image

OS: [Microsoft Windows] Browsers: Google Chrome: Version 100.0.4896.75/FireFox: Version 99.0 (64-bit Ketcher v2.4.2-158-g2312c8e8

ZhannaNovikova commented 2 years ago

Related issue in the Indigo: https://github.com/epam/Indigo/issues/704