conductor-sdk / conductor-csharp

The conductor-csharp repository provides the client SDKs to build task workers in C#
Apache License 2.0
41 stars 16 forks source link

Exception thrown when not providing auth settings #58

Closed dragorosson closed 1 year ago

dragorosson commented 1 year ago

According to the readme, authentication settings are optional. However, whenever Configuration.AccessToken is accessed, for example when polling for tasks, an exception is eventually thrown at https://github.com/conductor-sdk/conductor-csharp/blob/1ce0376acfc2ce7e5518ef18132196ec07a9638d/Conductor/Client/Authentication/TokenHandler.cs#L20 resulting in an exception:

dbug: Conductor.Client.Worker.WorkflowTaskExecutor[0]
      [DESKTOP-******] worker error: Value cannot be null. (Parameter 'key'), taskName: qwerty, domain: , batchSize: 16