500 internal server error on pack install

Hello, trying to install CHR and had the following session:

Welcome to SWI-Prolog (threaded, 64 bits, version 8.1.4)
SWI-Prolog comes with ABSOLUTELY NO WARRANTY. This is free software.
Please run ?- license. for legal details.

For online help and background, visit http://www.swi-prolog.org
For built-in help, use ?- help(Topic). or ?- apropos(Word).

Cannot read termcap database;
using dumb terminal settings.
?- [user].
|: :- debug.
|: 
|: ^D% user://1 compiled 0.00 sec, 1 clauses
true.

[debug]  ?- pack_install(chr).
% Contacting server at http://www.swi-prolog.org/pack/query ...
ERROR: url `'https://www.swi-prolog.org/pack/query'' does not exist (status(500,Internal Server Error))
ERROR: In:
ERROR:   [18] throw(error(existence_error(url,'https://www.swi-prolog.org/pack/query'),context(_17208,...)))
ERROR:   [17] http_open:send_rec_header(<stream>(0x7f8b2e53da30,0x7f8b2e53db30),_17242,'www.swi-prolog.org','/pack/query',[uri('http://www.swi-prolog.org/pack/query'),...|...],[visited(...),...|...]) at /Applications/SWI-Prolog.app/Contents/swipl/library/http/http_open.pl:525
ERROR:   [16] http_open:try_http_proxy(direct,[uri('http://www.swi-prolog.org/pack/query'),...|...],_17316,[post(...),...]) at /Applications/SWI-Prolog.app/Contents/swipl/library/http/http_open.pl:425
ERROR:   [15] http_open:http_open('http://www.swi-prolog.org/pack/query',_17382,prolog_pack:[...|...]) at /Applications/SWI-Prolog.app/Contents/swipl/library/http/http_open.pl:378
ERROR:   [14] <meta call>
ERROR:   [13] '$sig_atomic'(prolog_pack:http_open('http://www.swi-prolog.org/pack/query',_17456,...)) <foreign>
ERROR:   [12] setup_call_catcher_cleanup(prolog_pack:http_open('http://www.swi-prolog.org/pack/query',_17500,...),prolog_pack:read_reply(_17512,_17514,_17516),_17486,prolog_pack:close(_17526)) at /Applications/SWI-Prolog.app/Contents/swipl/boot/init.pl:469
ERROR:   [11] setup_call_cleanup(prolog_pack:http_open('http://www.swi-prolog.org/pack/query',_17566,...),prolog_pack:read_reply(_17578,_17580,_17582),prolog_pack:close(_17592)) at /Applications/SWI-Prolog.app/Contents/swipl/boot/init.pl:473
ERROR:   [10] prolog_pack:query_pack_server(locate(chr),_17624,[]) at /Applications/SWI-Prolog.app/Contents/swipl/library/prolog_pack.pl:1733
ERROR:    [9] prolog_pack:pack_default_options(chr,chr,[],_17666) at /Applications/SWI-Prolog.app/Contents/swipl/library/prolog_pack.pl:516
ERROR:    [8] prolog_pack:pack_install(chr) at /Applications/SWI-Prolog.app/Contents/swipl/library/prolog_pack.pl:457
ERROR:    [7] <user>
   Exception: (18) throw(error(existence_error(url, 'https://www.swi-prolog.org/pack/query'), context(_15910, status(500, 'Internal Server Error')))) ?

Upgrade to the latest version, it has been fixed.

1 Like

Thank you!