DNS resolution failed

Hi,

we are getting bellow exception sometimes (atleast once a day) "DNS resolution failed"

Exception Occured in QueryDgraphAsyncResult: IsSuccess=‘False’, Reasons='ExceptionalError with Message=‘Status(StatusCode=Unavailable, Detail=“DNS resolution failed”)’, Exception='Grpc.Core.RpcException: Status(StatusCode=Unavailable, Detail=“DNS resolution failed”)
at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Grpc.Core.Internal.AsyncCall2.UnaryCall(TRequest msg) at Grpc.Core.DefaultCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method2 method, String host, CallOptions options, TRequest request)
at Grpc.Core.Interceptors.InterceptingCallInvoker.b__3_0[TRequest,TResponse](TRequest req, ClientInterceptorContext2 ctx) at Grpc.Core.ClientBase.ClientBaseConfiguration.ClientBaseConfigurationInterceptor.BlockingUnaryCall[TRequest,TResponse](TRequest request, ClientInterceptorContext2 context, BlockingUnaryCallContinuation2 continuation) at Grpc.Core.Interceptors.InterceptingCallInvoker.BlockingUnaryCall[TRequest,TResponse](Method2 method, String host, CallOptions options, TRequest request)
at Api.Dgraph.DgraphClient.Query(Request request, CallOptions options)
at Api.Dgraph.DgraphClient.Query(Request request, Metadata headers, Nullable1 deadline, CancellationToken cancellationToken) at DgraphDotNet.GRPCConnection.Query(Request req) at DgraphDotNet.Transactions.Transaction.QueryWithVars(String queryString, Dictionary2 varMap)

Versions:
DGraph : v1.0.14
c# dgraph Client: v0.5.3 (https://github.com/MichaelJCompton/Dgraph-dotnet)

url to acces server:
we are using domain to connect to server looks like bellow
development-dgraph.visur.io:9080

How to get rid of this error?if its in developer machine ,its works, if they restart n/w when they encounter this exception.

I have no idea how @michaelcompton’s client works. But as the issue is related to DNS. I think my best bet is to create a DNS server or add the address to your hosts files vi /etc/hosts.

Cheers.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.