I’m using: SWI-Prolog (threaded, 64 bits, version 10.0.2)
I try to debug two containers running http_server, where one functions as a proxy calling the other using http_post.
Every 30 requests or so I get such an error on the proxy: (the browser gets HTTP-500)
url `‘http://akrido:8081/analinioj’’ does not exist (status(503,Service Unavailable))
This is coming back as fast as the valid answers (150ms). So it seems there is no timeout involved. Could some kind of network issue. The fast return hints on a client (i.e. proxy) side issue. I do not use the connection(keep_alive) option in the http_post - not sure what would be the best approach in this proxy scenario.
I tried to debug the http requests using the containers log (stdout) but I don’t see the output. Where it is going to? I tried those two commands:
[swipl,-s,analizo-servo.pl,-g,debug(http(request)),-g,daemon,-t,halt(1),--,--workers=10,--port=8081,--no-fork]
% Started server at http://localhost:8081/
[swipl,-s,analizo-servo.pl,-g,daemon,-t,halt(1),--,--workers=10,--port=8081,--no-fork,--debug='http(request)']
% Started server at http://localhost:8081/
How I would debug this issue? Any hint where to look specifically would help me.
Thank you,
Wolfram.