dotnetrdf
dotnetrdf copied to clipboard
Exception message contains the same text twice
When I try to query the endpoint that doesn't exists, I receive an exception message with the same text twice.
Example code:
SparqlRemoteEndpoint endpoint = new SparqlRemoteEndpoint(new Uri("http://dbpedi"));
ISparqlQueryProcessor processor = new RemoteQueryProcessor(endpoint);
processor.ProcessQuery(query, rdfCallback, resultsCallback, state);
// process result using TaskCompletionSource
// getting AsyncError
string error = ((AsyncError)results).Error.InnerException.Message;
Console.WriteLine(error);
I receive the following error:
No such host is known No such host is known
Do you think this is caused by dotNetRDF or could it be a side-effect of async code? AggregateException and such?
((AsyncError)results).Error.InnerException has type System.Net.WebException and its message is
No such host is known No such host is known
((AsyncError)results).Error.InnerException.InnerException has type System.Net.Http.HttpRequestException and its message is
No such host is known
((AsyncError)results).Error.InnerException.InnerException.InnerException has type System.Net.Sockets.SocketException and its message is
No such host is known
Next InnerException is null.
I think this looks like an issue with System.Net APIs and not with dotNetRDF.