Internal Server Errors while examing add-on pack details

While looking at items of interest, not bug hunting, I experienced three Internal Server Error messages.

  1. https://www.swi-prolog.org/pack/file_details/dict_schema/LICENSE
  2. https://www.swi-prolog.org/pack/file_details/dictype/LICENSE
  3. https://www.swi-prolog.org/pack/file_details/msgpack/test/msgpack.plt

Details for 1 and 3 are

1. Internal server error

I/O error in write on stream <stream>(0x559a7a79b500) (Success)
In:
[15] format('Content-type: ~w~n~n',[application/unknown])
[14] pack_info:pack_file_details(dict_schema,'LICENSE',[public_only(true),...]) at /srv/plweb/pack_info.pl:419
[12] http_dispatch:call_action(pack:pack_file_details,[path_info('/dict_schema/LICENSE'),...|...]) at /usr/lib/swipl/library/ext/http/http/http_dispatch.pl:1043
[10] time:run_alarm_goal('$alarm'(94121757653648),http_dispatch:call_action(...,...,...)) at /usr/lib/swipl/library/ext/clib/time.pl:163
[9] setup_call_cleanup(time:alarm(20,...,...,...),time:run_alarm_goal(...,...),time:remove_alarm_notrace(...)) at /usr/lib/swipl/boot/init.pl:682
[5] httpd_wrapper:call_handler(http_dispatch:time_limit_action(...,...,...),721409,-) at /usr/lib/swipl/library/ext/http/http/http_wrapper.pl:323
[4] catch(httpd_wrapper:call_handler(...,721409,-),error(io_error(write,<stream>(0x559a7a79b500)),context(...,'Success')),httpd_wrapper:true) at /usr/lib/swipl/boot/init.pl:565
[3] httpd_wrapper:handler_with_output_to(http_dispatch:time_limit_action(...,...,...),721409,-,current_output,error(io_error(write,<stream>(0x559a7a79b500)),context(...,'Success'))) at /usr/lib/swipl/library/ext/http/http/http_wrapper.pl:308

Note: some frames are missing due to last-call optimization.
Re-run your program in debug mode (:- debug.) to get more detail.
SWI-Prolog httpd at 9c2ac4526336
3. https://www.swi-prolog.org/pack/file_details/msgpack/test/msgpack.plt

 I/O error in write on stream <stream>(0x559a732fec00) (Success)
In:
[15] format('Content-type: ~w~n~n',[application/unknown])
[14] pack_info:pack_file_details(msgpack,'test/msgpack.plt',[public_only(true),...]) at /srv/plweb/pack_info.pl:419
[12] http_dispatch:call_action(pack:pack_file_details,[path_info('/msgpack/test/msgpack.plt'),...|...]) at /usr/lib/swipl/library/ext/http/http/http_dispatch.pl:1043
[10] time:run_alarm_goal('$alarm'(94121754518624),http_dispatch:call_action(...,...,...)) at /usr/lib/swipl/library/ext/clib/time.pl:163
[9] setup_call_cleanup(time:alarm(20,...,...,...),time:run_alarm_goal(...,...),time:remove_alarm_notrace(...)) at /usr/lib/swipl/boot/init.pl:682
[5] httpd_wrapper:call_handler(http_dispatch:time_limit_action(...,...,...),722319,-) at /usr/lib/swipl/library/ext/http/http/http_wrapper.pl:323
[4] catch(httpd_wrapper:call_handler(...,722319,-),error(io_error(write,<stream>(0x559a732fec00)),context(...,'Success')),httpd_wrapper:true) at /usr/lib/swipl/boot/init.pl:565
[3] httpd_wrapper:handler_with_output_to(http_dispatch:time_limit_action(...,...,...),722319,-,current_output,error(io_error(write,<stream>(0x559a732fec00)),context(...,'Success'))) at /usr/lib/swipl/library/ext/http/http/http_wrapper.pl:308

Note: some frames are missing due to last-call optimization.
Re-run your program in debug mode (:- debug.) to get more detail.
SWI-Prolog httpd at 9c2ac4526336

Thanks. That proved a rather serious error. Should be fixed with the next release.

1 Like