diff --git a/databend_py/connection.py b/databend_py/connection.py index 550158e..1e7a6d2 100644 --- a/databend_py/connection.py +++ b/databend_py/connection.py @@ -142,8 +142,8 @@ def do_query(self, url, query_sql): raise WarehouseTimeoutException except ValueError: pass - raise UnexpectedException("Unexpected status code %d when post query, content: %s" % - (response.status_code, response.content)) + raise UnexpectedException("Unexpected status code %d when post query, content: %s, headers: %s" % + (response.status_code, response.content, self.make_headers())) if response.content: try: