diff --git a/src/Packages/Audience/Runtime/Transport/HttpTransport.cs b/src/Packages/Audience/Runtime/Transport/HttpTransport.cs index 96a5a79f..6ec21e3a 100644 --- a/src/Packages/Audience/Runtime/Transport/HttpTransport.cs +++ b/src/Packages/Audience/Runtime/Transport/HttpTransport.cs @@ -282,11 +282,6 @@ private static async Task ParseRejectedCount(HttpResponseMessage response) } } - // Cap the response-body excerpt the caller sees. Backends sometimes - // return verbose stack traces or HTML error pages; trimming keeps - // OnError consumers (loggers, UI) from being flooded. - private const int MaxErrorBodyChars = 500; - // Best-effort body extraction; null on read failure. // Catches narrowed so OOM, OperationCanceledException, and ThreadAbortException // propagate — body extraction must not mask process-level faults. @@ -295,11 +290,7 @@ private static async Task ParseRejectedCount(HttpResponseMessage response) try { var body = await response.Content.ReadAsStringAsync().ConfigureAwait(false); - if (string.IsNullOrWhiteSpace(body)) return null; - body = body.Trim(); - return body.Length > MaxErrorBodyChars - ? body.Substring(0, MaxErrorBodyChars) + "…" - : body; + return string.IsNullOrWhiteSpace(body) ? null : body.Trim(); } catch (HttpRequestException) { return null; } catch (IOException) { return null; }