This httpserver should be working on 19.10.0.rc3_WP76xx.
Maybe you can give a try on this legato version or above.
Also please check logread and see if there is SMACK issue.
Thanks for the reply, I am still getting that HTTP 500 error message. And when I try to right click and save the .py on my computer it saves a web page with the HTTP 500 message.
I see this log message when I start up httpServer:
I am building the httpServer under Legato 19.07.0, the WP7702 is running 19.11.0_293d1395d26f2a2b136ae78fe9885901_modified. I tried building the httpServer under Legato 19.11.0 but I get this message:
WARNING: can't open config file: /opt/swi/SWI9X06Y_02.32.02.00/sysroots/x86_64-pokysdk-linux/usr/lib/ssl/openssl.cnf
R13 is not released yet for the WP77/ mangOH loads, maybe I will wait and try again then as I do not need this functioning immediately. Thanks for your help.
Rebuilt httpServer using source code from legato-19.07.0/apps/sample/ and installed under red_wp77xx_0.6.0.spk and it now works.
root@swi-mdm9x28-wp:~# cm info
Firmware Version: SWI9X06Y_02.35.02.00 5208b3 jenkins 2020/06/10 00:30:12
...
root@swi-mdm9x28-wp:~# legato version
19.11.2_625c7d1acfd1ca45b2dbe189b4cb1ce7_modified
Sorry for replying to an old thread. But why is the python input from shell() missing? (Date, uptime, Legato version etc.) It’s working when I run the python script from command line but missing on my end as well.
(My test system is WP7607 with R16.0 and Legato 20.08)
I was on branch 20.08 and somehow had not noticed the changes to httpServer 2 months ago.
Tried the updated files from httpServer master but got “ERR_CONNECTION_REFUSED”. Maybe it’s not compatible with legato 20.08 as there are som framework changes in the commit.
Also tried the updated diagnostics.sh wth the 20.08 version of httpServer but I get " 500 - Internal Server Error" when opening diagnostics.sh. Runs ok in command line.