You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running kusto-copy using the Mac version on a M1 machine there is an exception regarding JSON serialization???
Exception encountered: Newtonsoft.Json.JsonSerializationException ; Unable to find a default constructor to use for type System.Collections.Immutable.ImmutableDictionary`2[System.String,Kusto.Data.Common.Impl.WellKnownKustoEndpointsData+AllowedEndpoints]. Path 'AllowedEndpointsByLogin['https://login.microsoftonline.com']', line 10, position 40.
Whole stack trace:
kusto-copy 0.0.1.12
Initialization...
Exception encountered: System.TypeInitializationException ; The type initializer for 'Kusto.Data.Common.KustoTrustedEndpoints' threw an exception.
Stack trace: at Kusto.Data.Common.KustoTrustedEndpoints.IsTrustedLoginEndpoint(String loginEndpoint)
at Kusto.Cloud.Platform.Http.AuthenticationMetadataProvider.ExternalGetAadAuthenticationMetadataForClusterAsync(String clusterUrl)
at Kusto.Cloud.Platform.Http.AuthenticationMetadataProvider.AadAuthenticationNetworkCacheValueFactory.CreateCacheEntryValueAsync(String key, Object context, NetworkCacheEntry`3 previous)
at Kusto.Cloud.Platform.Utils.NetworkCache`3.GetCacheEntryAsync(TKey key, TGetContext getContext, Boolean forceRefetch, Boolean triggeredByTimer, Boolean forceRefetchSecondEvaluation)
at Kusto.Cloud.Platform.Utils.NetworkCache`3.GetCacheEntryAsync(TKey key, TGetContext getContext, Boolean forceRefetch)
at Kusto.Cloud.Platform.Utils.ExtendedTask.ResultEx[TResult](Task`1 task)
at Kusto.Cloud.Platform.Http.AuthenticationMetadataProvider.GetAadAuthenticationMetadataForCluster(String clusterUrl)
at Kusto.Data.Security.KustoClientServiceAadEntitiesConfiguration.CreateConfigurationFromAuthenticationMetadataEndpoint(ParsedUri parsedKustoConnectionDataSource, Boolean& loginMfaRequired)
at Kusto.Cloud.Platform.Http.AadHttpClientAuthenticatorBuilder..ctor(String kustoConnectionDataSource, AuthenticationMethod authenticationMethod, Boolean enforceMfa)
at Kusto.Data.Security.HttpClientAuthenticatorFactory.CreateAuthenticator(KustoConnectionStringBuilder kcsb)
at Kusto.Data.Net.Client.RestClient2.MakeHttpRequestAsyncImpl(String address, String csl, String ns, String databaseName, Boolean streaming, ClientRequestProperties properties, ServiceModelTimeoutKind timeoutKind, String clientRequestId, Stream body, StreamProperties streamProperties, CancellationToken cancellationToken, KustoProtocolRequest request, String hostHeaderOverride)
at Kusto.Cloud.Platform.Utils.MonitoredActivity.InvokeAsync[TActivityType,TResult](TActivityType activityType, Func`1 func, String clientRequestId)
at Kusto.Cloud.Platform.Utils.MonitoredActivity.InvokeAsync[TActivityType,TResult](TActivityType activityType, Func`1 func, String clientRequestId)
at Kusto.Data.Net.Client.RestClient2.MakeHttpRequestAsync(ActivityType activityType, String baseAddress, String relativeAddress, String clientRequestIdPrefix, String ns, String databaseName, String csl, String addr, Boolean streaming, ClientRequestProperties properties, ServiceModelTimeoutKind timeoutKind, StreamProperties streamProperties, CancellationToken cancellationToken)
at Kusto.Data.Net.Client.RestClient2.ExecuteControlCommandAsync(String databaseName, String command, String addr, ClientRequestProperties properties)
at KustoCopyConsole.KustoQuery.KustoClient.ExecuteCommandAsync[T](String database, String command, Func`2 projection, ClientRequestProperties properties)
at KustoCopyConsole.KustoQuery.KustoQueuedClient.<>c__DisplayClass13_0`1.<<ExecuteCommandAsync>b__1>d.MoveNext()
--- End of stack trace from previous location ---
at KustoCopyConsole.Concurrency.PriorityExecutionQueue`1.Request`1.ExecuteAsync()
at KustoCopyConsole.Concurrency.PriorityExecutionQueue`1.<RequestRunAsync>b__7_0[T]()
at Polly.AsyncPolicy.<>c__DisplayClass40_0.<<ImplementationAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Polly.Bulkhead.AsyncBulkheadEngine.ImplementationAsync[TResult](Func`3 action, Context context, Func`2 onBulkheadRejectedAsync, SemaphoreSlim maxParallelizationSemaphore, SemaphoreSlim maxQueuedActionsSemaphore, CancellationToken cancellationToken, Boolean continueOnCapturedContext)
at Polly.AsyncPolicy.ExecuteAsync(Func`3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext)
at KustoCopyConsole.Concurrency.PriorityExecutionQueue`1.RequestRunAsync[T](TPriority priority, Func`1 actionAsync)
at KustoCopyConsole.KustoQuery.KustoQueuedClient.<>c__DisplayClass13_0`1.<<ExecuteCommandAsync>b__0>d.MoveNext()
--- End of stack trace from previous location ---
at Polly.Retry.AsyncRetryEngine.ImplementationAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, ExceptionPredicates shouldRetryExceptionPredicates, ResultPredicates`1 shouldRetryResultPredicates, Func`5 onRetryAsync, Int32 permittedRetryCount, IEnumerable`1 sleepDurationsEnumerable, Func`4 sleepDurationProvider, Boolean continueOnCapturedContext)
at Polly.AsyncPolicy.ExecuteAsync[TResult](Func`3 action, Context context, CancellationToken cancellationToken, Boolean continueOnCapturedContext)
at KustoCopyConsole.KustoQuery.KustoQueuedClient.ExecuteAsync[T](Func`2 action, CancellationToken ct)
at KustoCopyConsole.KustoQuery.KustoQueuedClient.ExecuteCommandAsync[T](KustoPriority priority, String database, String command, Func`2 projection)
at KustoCopyConsole.Orchestrations.ConnectionsFactory.FetchQueryCountAsync(KustoClient client)
at KustoCopyConsole.Orchestrations.ConnectionsFactory.CreateKustoQueuedClientAsync(TokenCredential credentials, String clusterQueryConnectionString, Int32 concurrentQueryCount)
at KustoCopyConsole.Orchestrations.ConnectionsFactory.CreateKustoExportQueueAsync(TokenCredential credentials, String clusterQueryConnectionString, Int32 concurrentQueryCount, Int32 concurrentExportCommandCount)
at KustoCopyConsole.Orchestrations.ConnectionsFactory.CreateAsync(MainParameterization parameterization)
at KustoCopyConsole.Orchestrations.CopyOrchestration.CopyAsync(MainParameterization parameterization, CancellationToken ct)
at KustoCopyConsole.Program.RunOptionsAsync(CommandLineOptions options)
at CommandLine.ParserResultExtensions.WithParsedAsync[T](ParserResult`1 result, Func`2 action)
at KustoCopyConsole.Program.Main(String[] args)
Exception encountered: System.TypeInitializationException ; The type initializer for 'Kusto.Data.Common.Impl.WellKnownKustoEndpointsData' threw an exception.
Stack trace: at Kusto.Data.Common.KustoTrustedEndpoints..cctor()
Exception encountered: Newtonsoft.Json.JsonSerializationException ; Unable to find a default constructor to use for type System.Collections.Immutable.ImmutableDictionary`2[System.String,Kusto.Data.Common.Impl.WellKnownKustoEndpointsData+AllowedEndpoints]. Path 'AllowedEndpointsByLogin['https://login.microsoftonline.com']', line 10, position 40.
Stack trace: at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateNewDictionary(JsonReader reader, JsonDictionaryContract contract, Boolean& createdFromNonDefaultCreator)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.SetPropertyValue(JsonProperty property, JsonConverter propertyConverter, JsonContainerContract containerContract, JsonProperty containerProperty, JsonReader reader, Object target)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.PopulateObject(Object newObject, JsonReader reader, JsonObjectContract contract, JsonProperty member, String id)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateObject(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.CreateValueInternal(JsonReader reader, Type objectType, JsonContract contract, JsonProperty member, JsonContainerContract containerContract, JsonProperty containerMember, Object existingValue)
at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.Deserialize(JsonReader reader, Type objectType, Boolean checkAdditionalContent)
at Newtonsoft.Json.JsonSerializer.DeserializeInternal(JsonReader reader, Type objectType)
at Newtonsoft.Json.JsonConvert.DeserializeObject(String value, Type type, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value, JsonSerializerSettings settings)
at Newtonsoft.Json.JsonConvert.DeserializeObject[T](String value)
at Kusto.Data.Common.Impl.WellKnownKustoEndpointsData..cctor()
Imho this is not a platform issue, but a code/library issue. How can i solve this problem?
The text was updated successfully, but these errors were encountered:
When running kusto-copy using the Mac version on a M1 machine there is an exception regarding JSON serialization???
Whole stack trace:
Imho this is not a platform issue, but a code/library issue. How can i solve this problem?
The text was updated successfully, but these errors were encountered: