Forum How do I...?

Get more diagnostic information?

aefitzhugh
Prince running on one of our servers seems to time out on image references that on other servers work fine. The result is a pdf with no images, but otherwise looks ok.

What we see in the Prince log is only this:

http://localhost:1770/resize.ashx?url=xyzxyz: warning: couldn't connect to host

As the message implies, we never even see the request on the target server. I can paste that same URL into my browser and it works fine. Any way we can get more detailed diagnostic info on this failure?

-- Andy
aefitzhugh
Elsewhere I saw it mentioned that Prince uses libcurl, so I tracked that down to test the request. It was picking up an obsolete proxy setting in an environment variable. So I think I've got a handle on this problem.

A verbose logging option would help in tracking down issues like this.
kmtrowbr
Hi,

Just following up on this post, I have been tracing down a similar problem (although this did not turn out to be the issue).

I believe the 'obsolete proxy setting in an environment variable' that he references is - an environment variable named 'http_proxy' - and this is all documented on the libcurl site, at this URL: http://curl.haxx.se/libcurl/c/libcurl-tutorial.html#Environment

Good luck to others!
Kevin