# Internal Server Errors while examing add-on pack details

**URL:** https://swi-prolog.discourse.group/t/internal-server-errors-while-examing-add-on-pack-details/7473
**Category:** SWI-Prolog web site and services
**Tags:** bug
**Created:** [May 26, 2024, 2:33am UTC](https://swi-prolog.discourse.group/t/internal-server-errors-while-examing-add-on-pack-details/7473 "2024-05-26T02:33:13Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![DewayneG](https://avatars.discourse-cdn.com/v4/letter/d/838e76/32.png) [@DewayneG](https://swi-prolog.discourse.group/u/DewayneG)
#### Post date: [May 26, 2024, 2:33am UTC](https://swi-prolog.discourse.group/t/internal-server-errors-while-examing-add-on-pack-details/7473/1 "2024-05-26T02:33:13Z")

</div>

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](https://www.swi-prolog.org/pack/file_details/dict_schema/LICENSE)
2. [https://www.swi-prolog.org/pack/file\_details/dictype/LICENSE](https://www.swi-prolog.org/pack/file_details/dictype/LICENSE)
3. [https://www.swi-prolog.org/pack/file\_details/msgpack/test/msgpack.plt](https://www.swi-prolog.org/pack/file_details/msgpack/test/msgpack.plt)

Details for 1 and 3 are

```prolog
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

```

```prolog
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

```

---

<div class="post-metadata">

### Author: ![jan](https://yyz2.discourse-cdn.com/free1/user_avatar/swi-prolog.discourse.group/jan/32/4_2.png) [@jan](https://swi-prolog.discourse.group/u/jan)
#### Post date: [May 27, 2024, 1:33pm UTC](https://swi-prolog.discourse.group/t/internal-server-errors-while-examing-add-on-pack-details/7473/2 "2024-05-27T13:33:38Z")

</div>

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