Bug logging into https://www.swi-prolog.org/

Reproduce:

  • Goto swi-prolog site
  • Click login link in page footer
  • click “sign in with “ + Google icon
  • follow Google oauth until successful redirected can to swi

I expected to see the normal swi page I started on, and hopefully ability to comment on pages.

I actually got a 500 error at https://ww1.swi-prolog.org/oauth2/auth_redirect?state=111f…etc…bd0ff&iss=https%3A%2F%2Faccounts.google.com&code=4%2F0…etc…Qg&scope=email+profile+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.profile+openid+https%3A%2F%2Fwww.googleapis.com%2Fauth%2Fuserinfo.email&authuser=0&prompt=none

And on the visible page body I saw:

Internal server error

http_session `_1018’ does not exist
In:
[18] throw(error(existence_error(http_session,_1074),_1068))
[16] http_session:http_session_assert(ax(#{client_data: …,email:“j***@gmail.com”,email_verified:true,family_name:“Siddall”,given_name:“Joseph”,name:“Joseph Siddall”,picture:“…”,sub:“10…72”})) at /usr/lib/swipl/library/ext/http/http/http_session.pl:613
[15] google_client:create_user(#{client_data:_1214{return_to: /,stay:yes},email:“j***@gmail.com”,email_verified:true,family_name:“Siddall”,given_name:“Joseph”,name:“Joseph Siddall”,picture:“…”,sub:“10…72”}) at /srv/plweb/openid.pl:1030
[12] http_dispatch:call_action(google_client:oauth_handle_redirect,[protocol(http),…|…]) at /usr/lib/swipl/library/ext/http/http/http_dispatch.pl:1043
[10] time:run_alarm_goal(‘<garbage_collected>’,‘<garbage_collected>’) at /usr/lib/swipl/library/ext/clib/time.pl:163
[9] setup_call_cleanup(time:alarm(300,…,…,…),time:run_alarm_goal(…,…),time:remove_alarm_notrace(…)) at /usr/lib/swipl/boot/init.pl:682
[5] httpd_wrapper:call_handler(‘<garbage_collected>’,4858410,-) at /usr/lib/swipl/library/ext/http/http/http_wrapper.pl:327
[4] catch(httpd_wrapper:call_handler(…,4858410,-),_1434,httpd_wrapper:true) at /usr/lib/swipl/boot/init.pl:565
[3] httpd_wrapper:handler_with_output_to(http_dispatch:time_limit_action(…,…,…),4858410,-,current_output,_1494) at /usr/lib/swipl/library/ext/http/http/http_wrapper.pl:312

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 c764c0acaecc

Welcome to the forum!

Sorry to hear that.

In trying to reproduce the problem to confirm it is not just you so Jan W. can fix, I was able to successfully log in. This was not the first time I have logged into the site so that may be the factor.

image

I tried right now and got a similar result as Joseph. As far as I can remember, I had never logged in the site before.

Internal server error

http_session `_13000’ does not exist
In:
[18] throw(error(existence_error(http_session,_13056),_13050))
[16] http_session:http_session_assert(ax(#{client_data: …

[12] http_dispatch:call_action(google_client:oauth_handle_redirect,[protocol(http),…|…]) at /usr/lib/swipl/library/ext/http/http/http_dispatch.pl:1043
[10] time:run_alarm_goal(‘<garbage_collected>’,‘<garbage_collected>’) at /usr/lib/swipl/library/ext/clib/time.pl:163
[9] setup_call_cleanup(time:alarm(300,…,…,…),time:run_alarm_goal(…,…),time:remove_alarm_notrace(…)) at /usr/lib/swipl/boot/init.pl:682
[5] httpd_wrapper:call_handler(‘<garbage_collected>’,5950707,-) at /usr/lib/swipl/library/ext/http/http/http_wrapper.pl:327
[4] catch(httpd_wrapper:call_handler(…,5950707,-),_13416,httpd_wrapper:true) at /usr/lib/swipl/boot/init.pl:565
[3] httpd_wrapper:handler_with_output_to(http_dispatch:time_limit_action(…,…,…),5950707,-,current_output,_13476) at /usr/lib/swipl/library/ext/http/http/http_wrapper.pl:312

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 c764c0acaecc