FreeTAKTeam / UI

FreeTAKServer Web User Interface project
MIT License
30 stars 27 forks source link

Catch and Report Connection Configuration Error #69

Open phreed opened 2 months ago

phreed commented 2 months ago

There are cases where the FTS-UI is misconfigured. There is documentation explaining how to correct the configuration. Cause the FTS-UI to catch the mis-configuration exception and direct the operator to the appropriate documentation.

Here is one such place where a connection exception is probably caused by such a mis-configuration:

  File "/root/fts.venv/lib/python3.11/site-packages/FreeTAKServer-UI/app/base/routes.py", line 42, in login
    user = requests.get(f"{app.config['PROTOCOL']}://{app.config['IP']}:{app.config['PORT']}/AuthenticateUser", params={"username": username, "password": password}, headers={"Authorization": f"{app.config['APIKEY']}"})