Azure / Webjobs.Extensions.Kusto

Azure functions Input and output bindings for Kusto (ADX)
MIT License
4 stars 6 forks source link

1.0.8 release throws System.TypeInitializationException #56

Open jog1wz opened 2 months ago

jog1wz commented 2 months ago

After the newest release on 30th Aug, out function started unexpectedly throwing errors and stopped running altogether. Before that, everything was working fine for over a month. After starting the function on version 1.0.8 (Extensions Bundles Preview release4.21.0) the following exception is thrown:

Exception while executing function /Functions.func_send_job_requests ---> System.TypeInitializationException /The type initializer for 'Kusto.Data.Security.HttpClientAuthenticatorFactory' threw an exception. ---> System.IO. NotFoundException /Could not load file or assembly 'System.Diagnostics.DiagnosticSource, Version=8.0.0.0, Culture=neutral, >PublicKeyToken=cc7b13ffcd2ddd51'. The system cannot find the file specified. End of inner exception
Kusto.Data.Security.HttpClientAuthenticatorFactory.CreateAuthenticator(KustoConnectionStringBuilder kcsb)

After downgrading to extension pack 4.20.0, everything started working again.

Our binding:

{
            "name": "products",
            "type": "kusto",
            "database": "%KUSTO_DATABASE%",
            "direction": "in",
            "kqlCommand": "TableName",
            "connection": "KustoConnectionString",
            "managedServiceIdentity": "system"
}
ag-ramachandran commented 1 month ago

Hello @jog1wz , A new version : https://github.com/Azure/Webjobs.Extensions.Kusto/releases/tag/1.0.11-Preview was released on Sep/5. Would you want to give it a try.

There were some issues in the underlying SDK that were fixed. PLease give it a spin