Hi,
i am using the Auth0.AuthenticationApi SDK to get a token for the ManagementApi.
This is my code for getting an token:
var authClient = new AuthenticationApiClient(_auth0Settings.Domain);
var ccRequest = new ClientCredentialsTokenRequest
{
Audience = _auth0Settings.Audience,
ClientSecret = _auth0Settings.ClientSecret,
ClientId = _auth0Settings.ClientId
};
var token = await authClient.GetTokenAsync(ccRequest);
return token.AccessToken;
It was working a few times, but now i am only getting this error:
System.Net.Http.HttpRequestException: Resource temporarily unavailable (https:443)
---> System.Net.Sockets.SocketException (11): Resource temporarily unavailable
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.ThrowException(SocketError error, CancellationToken cancellationToken)
at System.Net.Sockets.Socket.AwaitableSocketAsyncEventArgs.System.Threading.Tasks.Sources.IValueTaskSource.GetResult(Int16 token)
at System.Net.Sockets.Socket.<ConnectAsync>g__WaitForConnectWithCancellation|281_0(AwaitableSocketAsyncEventArgs saea, ValueTask connectTask, CancellationToken cancellationToken)
at System.Net.Http.HttpConnectionPool.ConnectToTcpHostAsync(String host, Int32 port, HttpRequestMessage initialRequest, Boolean async, CancellationToken cancellationToken)
Does anyone have any solution for me?