diff --git a/Apps.Lionbridge/Api/LionbridgeClient.cs b/Apps.Lionbridge/Api/LionbridgeClient.cs index e24009a..d49fed4 100644 --- a/Apps.Lionbridge/Api/LionbridgeClient.cs +++ b/Apps.Lionbridge/Api/LionbridgeClient.cs @@ -76,7 +76,7 @@ protected override Exception ConfigureErrorException(RestResponse response) } catch (Exception e) { - return new Exception($"Error was thrown while executing request, response content: {response.Content}; status code: {response.StatusCode}"); + return new Exception($"Error was thrown while executing request, response content: {response.Content}; status code: {response.StatusCode}; Exception message: {e.Message}"); } } diff --git a/Apps.Lionbridge/Webhooks/Handlers/BaseWebhookHandler.cs b/Apps.Lionbridge/Webhooks/Handlers/BaseWebhookHandler.cs index a0a1b57..4aa879e 100644 --- a/Apps.Lionbridge/Webhooks/Handlers/BaseWebhookHandler.cs +++ b/Apps.Lionbridge/Webhooks/Handlers/BaseWebhookHandler.cs @@ -36,7 +36,8 @@ public async Task SubscribeAsync(IEnumerable } var bridge = new BridgeService(authenticationCredentialsProviders, _bridgeServiceUrl); - bridge.Subscribe(GetEventType(), listener.ListenerId, values["payloadUrl"]); + string eventType = GetEventType(); + bridge.Subscribe(eventType, listener.ListenerId, values["payloadUrl"]); } public async Task UnsubscribeAsync(IEnumerable authenticationCredentialsProviders, @@ -46,7 +47,8 @@ public async Task UnsubscribeAsync(IEnumerable