FreeTAKTeam / UI

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

/mission giving a error on excheck_json_data = excheck_json_data['data'][0]['contents'] #59

Open woutersf opened 4 months ago

woutersf commented 4 months ago

I just succeeded in installing the FTS and UI a,d Isee them via the browser 👍. Thanks for your efforts on this system.

I'm bumping into an error page navigating to the /mission url.
I'm not sure if I did not configure correctly or something is wrong?

The code

The code looks as followed: excheck_json_data = excheck_json_data['data'][0]['contents']

However the logs say that excheck_json_data looks like this: {'ExCheck': {'Templates': [], 'Checklists': []}}

The error looks like this:

  File "/usr/local/lib/python3.8/dist-packages/FreeTAKServer-UI/app/home/routes.py", line 69, in missionApi
    excheck_json_data = excheck_json_data['data'][0]['contents'],
KeyError: 'data'

Details of my setup:

Fresh install (Ubuntu on google cloud) [FTS SERVER INFO] FreeTAKServer-2.0.69

[UI SERVER INFO] Version 2.1

[UP TIME] 1H 9M 17S

brothercorvo commented 4 months ago

you are running FTS on Python 3.8, the suggested version is 3.11. also it's strange that you have FTS 2.0 and the 2.1 UI