Skip to content

Commit

Permalink
Remove trailing slash from source filter in event subscription.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronny Birkeli committed May 23, 2023
1 parent 588555a commit 3936bc2
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public async Task<Subscription> AddSubscription(string org, string app, string e
{
TypeFilter = eventType,
EndPoint = new Uri($"{appBaseUrl}api/v1/eventsreceiver?code={await _secretCodeProvider.GetSecretCode()}"),
SourceFilter = new Uri(appBaseUrl)
SourceFilter = new Uri(appBaseUrl.TrimEnd('/')) // The event system is requireing the source filter to be without trailing slash
};

string serializedSubscriptionRequest = JsonSerializer.Serialize(subscriptionRequest);
Expand Down

0 comments on commit 3936bc2

Please sign in to comment.