hastic-zzz / hastic-server

Hastic data management server for analyzing patterns and anomalies from Grafana
GNU General Public License v3.0
330 stars 23 forks source link

More friendly message for missing HASTIC_API_KEY #836

Closed jonyrock-back closed 4 years ago

jonyrock-back commented 4 years ago

This is what I get:

HASTIC_IN_MEMORY_PERSISTANCE: false
HASTIC_DB_CONNECTION_TYPE: nedb
HASTIC_DB_CONNECTION_STRING: hastic:password@mongodb:27017/hastic
HASTIC_PORT: 8000
/home/corp/temp_projects/hastic/hastic-server/server/dist/server-dev.js:27968
            throw new Error(`Please configure ${field}`);
            ^

Error: Please configure HASTIC_API_KEY

I think it's very possible case when user has not-set HASTIC_API_KEY and we should not show exception in console

jonyrock-back commented 4 years ago

related: https://github.com/hastic/hastic-server/issues/818

jonyrock commented 4 years ago

https://github.com/hastic/hastic-server/issues/899