Open ETP client displays one error message for all technical/auth issues regardless of the root cause
Open ETP client always prints in the log one error message "WebSocket connection timed-out" for all technical/auth issues like:
- Server is down
- Unauthorized request
- Unavailable DB
- Internal error
- Etc..
Steps to reproduce:
- Run local server with builtin authentication via command:
openETPServer server --start --authN builtin --debug --verbose
- Try to get list of dataspaces without passing credentials:
openETPServer space -S ws://localhost:9002 --list --timeout=500s,500s
Expected result: Client should print in the log correct reason of error, for example "Unauthorized request" for the described case.
Actual result: Client always prints in the log:
[2023-Mar-30 10:24:58] Info: CLT connect($1 on ~1, ws://localhost:9002) Failed (5018.4ms)
[2023-Mar-30 10:25:46] Error: Error: Connect: ws://localhost:9002 # 12: WebSocket connection timed-out
[2023-Mar-30 10:25:46] Error: openETPServer: Error: Non-zero return code: 1