Failed to connect to server

Hey, I’m Not using any proxy block why its giving me this error
i have tried changing security protocol still issue is not solved

My Windows TLS version: 1.2 and 1.3

Note: its not happening everytime but it shows randomly why?

image

Error Message:

[Executing block Http Request] ProxyException: RuriLib.Proxies.Exceptions.ProxyException: Failed to connect to server
 ---> System.Net.Sockets.SocketException (11001): No such host is known.
   at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
   at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|285_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
   at System.Net.Sockets.TcpClient.CompleteConnectAsync(ValueTask task)
   at RuriLib.Proxies.ProxyClient.ConnectAsync(String destinationHost, Int32 destinationPort, TcpClient tcpClient, CancellationToken cancellationToken) in /code/RuriLib.Proxies/ProxyClient.cs:line 63
   --- End of inner exception stack trace ---
   at RuriLib.Proxies.ProxyClient.ConnectAsync(String destinationHost, Int32 destinationPort, TcpClient tcpClient, CancellationToken cancellationToken) in /code/RuriLib.Proxies/ProxyClient.cs:line 74
   at RuriLib.Http.RLHttpClient.CreateConnection(HttpRequest request, CancellationToken cancellationToken) in /code/RuriLib.Http/RLHttpClient.cs:line 241
   at RuriLib.Http.RLHttpClient.SendAsync(HttpRequest request, Int32 redirects, CancellationToken cancellationToken) in /code/RuriLib.Http/RLHttpClient.cs:line 146
   at RuriLib.Functions.Http.RLHttpClientRequestHandler.HttpRequestStandard(BotData data, StandardHttpRequestOptions options) in /code/RuriLib/Functions/Http/RLHttpClientRequestHandler.cs:line 66
   at Submission#0.<<Initialize>>d__0.MoveNext()
--- End of stack trace from previous location ---
   at Microsoft.CodeAnalysis.Scripting.ScriptExecutionState.RunSubmissionsAsync[TResult](ImmutableArray`1 precedingExecutors, Func`2 currentExecutor, StrongBox`1 exceptionHolderOpt, Func`2 catchExceptionOpt, CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.Scripting.Script`1.RunSubmissionsAsync(ScriptExecutionState executionState, ImmutableArray`1 precedingExecutors, Func`2 currentExecutor, Func`2 catchExceptionOpt, CancellationToken cancellationToken)
   at Microsoft.CodeAnalysis.Scripting.ScriptStateTaskExtensions.CastAsync[S,T](Task`1 task)
   at RuriLib.Models.Debugger.ConfigDebugger.Run() in /code/RuriLib/Models/Debugger/ConfigDebugger.cs:line 251

Even if you’re not using a proxy, a NoProxyClient is created behind the scenes, so that’s why the error is referencing a proxy. No proxy is actually being used, it’s just a fake proxy object inside the code.

Anyways, this issue is related to the fact that the DNS lookup fails. Is the domain stable? Is your connection stable? Is your DNS server of choice stable? What DNS servers are you using in the IPv4 settings of your network interface?

I dont use domain name in my pc i have WORKGROUP so its not the issue but as you said it maybe issue with dns, i checked my dns setting its empty so i added google free dns and the issue is solved now thanks

1 Like