Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc_http.pl generates an error "goal unexpectedly failed" #39

Open
dtonhofer opened this issue Oct 30, 2020 · 0 comments
Open

doc_http.pl generates an error "goal unexpectedly failed" #39

dtonhofer opened this issue Oct 30, 2020 · 0 comments

Comments

@dtonhofer
Copy link
Contributor

dtonhofer commented Oct 30, 2020

Querying this URL

https://eu.swi-prolog.org/pldoc/doc_for?object=f(random_float/)

instead of this URL

https://eu.swi-prolog.org/pldoc/doc_for?object=f(random_float/0)

leads to an internal server error

goal unexpectedly failed: pldoc_http:pldoc_object([protocol(http),peer(ip(10,0,3,1)),
pool(client('httpd@80',plweb:http_dispatch,<stream>(0x55614ec36000),
<stream>(0x55614ec36f00))),input(<stream>(0x55614ec36000)),
method(get),request_uri('/pldoc/doc_for?object=f(random_float/)'),
path('/pldoc/doc_for'),search([object='f(random_float/)']),
http_version(1-1),host('eu.swi-prolog.org'),
x_forwarded_for('X.X.X.X'),
connection(close),
user_agent('Mozilla/5.0 (X11; Fedora; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0'),
accept([media(text/html,[],1.0,[]),
media(application/'xhtml+xml',[],1.0,[]),
media(image/webp,[],1.0,[]),
media(application/xml,[],0.9,[]),
media(_2554/_2556,[],0.8,[])]),
accept_language('en-GB,en;q=0.5'),
accept_encoding('gzip, deflate, br'),
cookie([swipl_login='XXXX',swipl_session='XXXX']),upgrade_insecure_requests('1')])
In:
In:
[13] throw(error(goal_failed(...),_2700))
[12] http_dispatch:call_action(pldoc_http:pldoc_object,[protocol(http),...|...]) at /home/swipl/lib/swipl/library/http/http_dispatch.pl:1030
[10] time:run_alarm_goal('$alarm'(93876327253568),http_dispatch:call_action(...,...,...)) at /home/swipl/lib/swipl/library/time.pl:147

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant