From 4e6d51cc0ace25a29fceac36bbba78aa5c6698a3 Mon Sep 17 00:00:00 2001 From: Daniel Thorn Date: Tue, 10 Dec 2024 08:07:03 -0800 Subject: [PATCH] bug-1935274: increase message length for BugzillaRestHTTPUnexpectedError (#6833) --- webapp/crashstats/crashstats/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webapp/crashstats/crashstats/models.py b/webapp/crashstats/crashstats/models.py index c428280a02..7a515f32c6 100644 --- a/webapp/crashstats/crashstats/models.py +++ b/webapp/crashstats/crashstats/models.py @@ -1041,8 +1041,8 @@ def get(self, bugs, **kwargs): if "bugs" not in data: # We know the payload is JSON, but we don't know what shape it is--could # be an array or an object. We know it doesn't have sensitive data in - # it, so let's dump to a string and truncate that to 100 characters. - payload_data = response.content[:100] + # it, so let's dump to a string and truncate that to 200 characters. + payload_data = response.content[:200] raise BugzillaRestHTTPUnexpectedError( f"status code: {response.status_code}, payload: {payload_data!r}" )