/clear endpoint not working
My request is:
{ "type" : "file", "abs_path": "/A/B/Filename-2.exe", "file_size": 1024, "creation_time": "1604235569", "modification_time": "1604235569", "access_time": "1604235569", "change_time": "1604235569", "media_type": "img", "filename_extension": "png" }
The response is this: <> html>
500 Internal server errorInternal server error
Arguments are not sufficiently instantiated
SWI-Prolog httpd at transmatter-laptop
In:
[20] _6592 is _6598-1
[19] web_api:clear_bg([protocol(http),...|...]) at /home/transmatter/folders/code/uniBam/thesis/demonstrator/web_api.pl:266
[18] http_dispatch:call_action(web_api:clear_bg,[protocol(http),...|...]) at /usr/lib/swi-prolog/library/http/http_dispatch.pl:1030
[16] time:run_alarm_goal('$alarm'(11197176410828),http_dispatch:call_action(...,...,...)) at /usr/lib/swi-prolog/library/time.pl:147
[15] setup_call_catcher_cleanup(time:alarm(300,...,...,...),time:run_alarm_goal(...,...),_850,time:remove_alarm_notrace(...)) at /usr/lib/swi-prolog/boot/init.pl:564
[8] httpd_wrapper:call_handler(web_api:http_dispatch,28,[protocol(http),...|...]) at /usr/lib/swi-prolog/library/http/http_wrapper.pl:329
[7] catch(httpd_wrapper:call_handler(...,28,...),error(instantiation_error,context(...,_1000)),httpd_wrapper:true) at /usr/lib/swi-prolog/boot/init.pl:482
[6] httpd_wrapper:handler_with_output_to(web_api:http_dispatch,28,[protocol(http),...|...],current_output,error(instantiation_error,context(...,_1078))) at /usr/lib/swi-prolog/library/http/http_wrapper.pl:306
[5] httpd_wrapper:handler_with_output_to(web_api:http_dispatch,28,[protocol(http),...|...],<stream>(0x7f071c03dd50),error(instantiation_error,context(...,_1150))) at /usr/lib/swi-prolog/library/http/http_wrapper.pl:318
Note: some frames are missing due to last-call optimization.
Re-run your program in debug mode (:- debug.) to get more detail.