When UI is running, but the server is not, the login error is incorrect
Here's something I came up with while playing with Stork on MacOS.
- The UI is running (rake serve_ui)
- The server was NOT running
There's a correct error printed on the console:
[HPM] Error occurred while trying to proxy request /api/version from localhost:4200 to http://localhost:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /api/sessions?useremail=sdds&userpassword=sdsd from localhost:4200 to http://localhost:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
[HPM] Error occurred while trying to proxy request /api/sessions?useremail=admin&userpassword=admin from localhost:4200 to http://localhost:8080 (ECONNREFUSED) (https://nodejs.org/api/errors.html#errors_common_system_errors)
However, when trying to log in with known credentials, the UI says the login or password was incorrect. There should be a different error message saying something like "unable to contact Stork server" or similar.
Edited by Tomek Mrugalski