debug invit

watcha-develop watcha-20241021T112738-efc6ace
dlamarcheteamnet 1 month ago
parent 142020a6f9
commit efc6ace1b1
  1. 7
      synapse/http/client.py

@ -793,6 +793,13 @@ class BaseHttpClient:
if 200 <= response.code < 300:
return response
else:
logger.error(
"HTTP Response Error %s: %s\nBody: %s",
response.code,
response.phrase.decode("ascii", errors="replace"),
body.decode("utf-8", errors="replace") # Si le corps est du texte
)
raise HttpResponseException(
response.code, response.phrase.decode("ascii", errors="replace"), body
)

Loading…
Cancel
Save