Skip to content

Connect issue: Sockets on this platform are invalid for use after a failed connection attempt #587

Closed
@dannystommen

Description

@dannystommen

When running a random command again the 4.19 SDK, we receive the error: Sockets on this platform are invalid for use after a failed connection attempt

System.Net.Http.HttpRequestException : Sockets on this platform are invalid for use after a failed connection attempt. (5b0fdf959f2e105c6a9b130acf348694.yl4.eu-west-1.eks.amazonaws.com:443) ---- System.PlatformNotSupportedException : Sockets on this platform are invalid for use after a failed connection attempt. Stack Trace: at System.Net.Http.ConnectHelper.ConnectAsync(Func3 callback, DnsEndPoint endPoint, HttpRequestMessage requestMessage, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.ConnectAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.CreateHttp11ConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.GetHttpConnectionAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at System.Net.Http.HttpConnectionPool.SendWithRetryAsync(HttpRequestMessage request, Boolean async, Boolean doRequestAuth, CancellationToken cancellationToken) at System.Net.Http.RedirectHandler.SendAsync(HttpRequestMessage request, Boolean async, CancellationToken cancellationToken) at k8s.WatcherDelegatingHandler.SendAsync(HttpRequestMessage request, CancellationToken cancellationToken) at System.Net.Http.HttpClient.SendAsyncCore(HttpRequestMessage request, HttpCompletionOption completionOption, Boolean async, Boolean emitTelemetryStartStop, CancellationToken cancellationToken) at k8s.Kubernetes.ListNamespacedJobWithHttpMessagesAsync(String namespaceParameter, Nullable 1 allowWatchBookmarks, String continueParameter, String fieldSelector, String labelSelector, Nullable 1 limit, String resourceVersion, String resourceVersionMatch, Nullable 1 timeoutSeconds, Nullable 1 watch, String pretty, Dictionary 2 customHeaders, CancellationToken cancellationToken) at k8s.KubernetesExtensions.ListNamespacedJobAsync(IKubernetes operations, String namespaceParameter, Nullable 1 allowWatchBookmarks, String continueParameter, String fieldSelector, String labelSelector, Nullable 1 limit, String resourceVersion, String resourceVersionMatch, Nullable 1 timeoutSeconds, Nullable 1 watch, String pretty, CancellationToken cancellationToken)

This is being executed towards AWS EKS, running version 1.18.

On my local Windows machine it's working fine. When running this on the EKS cluster (linux), it fails with the above mentioned error. In the 4.16 SDK this does work.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions