Skip to content

Commit

Permalink
Add missing org id in source url for event
Browse files Browse the repository at this point in the history
  • Loading branch information
Ronny Birkeli committed Nov 6, 2022
1 parent 475c6c5 commit 56f01db
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ public EventsSubscriptionClient(
/// <returns>The created <see cref="Subscription"/></returns>
public async Task<Subscription> AddSubscription(string org, string app, string eventType)
{
var appBaseUrl = $"https://{org}.apps.{_generalSettings.HostName}/{app}";
var appBaseUrl = $"https://{org}.apps.{_generalSettings.HostName}/{org}/{app}";

var subscriptionRequest = new SubscriptionRequest()
{
Expand All @@ -75,7 +75,7 @@ public async Task<Subscription> AddSubscription(string org, string app, string e
else
{
var content = await response.Content.ReadAsStringAsync();
_logger.LogError("Unable to create subscriptiod, received status {statusCode} {resonPhrase} with the following content {content}", response.StatusCode, response.ReasonPhrase ?? "Unknown reason phrase", content);
_logger.LogError("Unable to create subscription, received status {statusCode} with the following content {content}", response.StatusCode, content);
throw await PlatformHttpException.CreateAsync(response);
}
}
Expand Down

0 comments on commit 56f01db

Please sign in to comment.