====== An example of how not to do a user interface ====== This example comes to you courtesy of [[http://Grafana.com|Grafana]], which regards itself as "Trusted and loved by the community". Well, there's one particular part that this member of community thinks is absolutely awful. - Install Grafana (in my case, on Debian stable, "Stretch") - Start to configure a data source (in my case, InfluxDB - nothing exotic) - Note that the URL field is already filled in with **http://localhost:8086** (as that's the most likely setting for InfluxDB) - Add the name of your database (in my case "telegraf" - again, nothing exotic) - Click on "Save & Test" to make sure everything's working - Get the obscure error message "Network Error: Bad Gateway(502)" * What do you mean, Network error: Bad Gateway? I'm talking to localhost here - there **is** no gateway (and yes, localhost is listening on port 8086) - What does it turn out to mean? **The default entry in the URL field is an //example//, __not__ a default setting**! - You see **http://localhost:8086** in the field, and you think "yes, that's correct", but no, **that is not what the field contains - it is __empty__** * You have to actually __type the same thing__ into the field yourself, and then click on "Save & Test" before Grafana will tell you "yep, thanks, that works". **Nowhere** does it tell you that the entry is just an example, and is not the default value which will be used unless you change it. An awful user interface example, in my opinion. ---- [[.:|Go up]]\\ Return to [[:|main index]].