From 9448b570541416d95bfb81423afc9b8d69a1baf1 Mon Sep 17 00:00:00 2001 From: Dmitriy Ulyanin Date: Tue, 15 Oct 2024 23:28:20 +0200 Subject: [PATCH] Add http response.text to deployment error reason --- vespa/deployment.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vespa/deployment.py b/vespa/deployment.py index f6505cd9..ea1e130e 100644 --- a/vespa/deployment.py +++ b/vespa/deployment.py @@ -1161,7 +1161,7 @@ def get_connection_response_with_retry( ) if response.status_code != 200: raise HTTPError( - f"HTTP {response.status_code} error: {response.reason_phrase} for {path}" + f"HTTP {response.status_code} reason: {response.reason_phrase} error_text: {response.text} for {path}" ) return response