Skip to content

Commit

Permalink
Log error message from Streaming web socket response. (#6283) (#6286)
Browse files Browse the repository at this point in the history
  • Loading branch information
msomanathan authored Mar 31, 2022
1 parent 9e1e0a4 commit 9a396c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -425,7 +425,7 @@ public virtual async Task<ResourceResponse> SendActivityAsync(Activity activity,
}
else
{
throw new Exception($"Failed to send request through streaming transport. Status code: {serverResponse.StatusCode}.");
throw new Exception($"Failed to send request through streaming transport. Status code: {serverResponse.StatusCode}.\n{await serverResponse.ReadBodyAsStringAsync().ConfigureAwait(false)}");
}
}

Expand Down

0 comments on commit 9a396c1

Please sign in to comment.