curb icon indicating copy to clipboard operation
curb copied to clipboard

Inspect the HostResolutionError to know which domain fails

Open jlecour opened this issue 13 years ago • 1 comments

Hi,

I'm using curb through Savon (a SOAP client).

Sometimes, I get some Curl::Err::HostResolutionError errors. It's expected, sometimes resolvers fail, domains are not well configured, …

But I'd like to know which exact domain is causing this error. I've tried to rescue the exception and inspect the object, but I can't get anything useful.

Is there a way to know what was the request ?

Thanks.

jlecour avatar Oct 12 '12 08:10 jlecour

Good question, you might look in curb/ext/curb_errors.c I don't know for sure but that might be a good place to start...

On Fri, Oct 12, 2012 at 4:20 AM, Jérémy Lecour [email protected]:

Hi,

I'm using curb through Savon (a SOAP client).

Sometimes, I get some Curl::Err::HostResolutionError errors. It's expected, sometimes resolvers fail, domains are not well configured, …

But I'd like to know which exact domain is causing this error. I've tried to rescue the exception and inspect the object, but I can't get anything useful.

Is there a way to know what was the request ?

Thanks.

— Reply to this email directly or view it on GitHubhttps://github.com/taf2/curb/issues/129.

taf2 avatar Oct 25 '12 17:10 taf2