diff --git a/daliuge-common/dlg/restutils.py b/daliuge-common/dlg/restutils.py index e1b981f3d..7f757ef30 100644 --- a/daliuge-common/dlg/restutils.py +++ b/daliuge-common/dlg/restutils.py @@ -199,13 +199,12 @@ def _request(self, url, method, content=None, headers={}): # Server errors are encoded in the body as json content if self._resp.status != http.HTTPStatus.OK: - msg = "Error on remote %s@%s:%s%s (status %d) (body %s): " % ( + msg = "Error on remote %s@%s:%s%s (status %d): " % ( method, self.host, self.port, url, self._resp.status, - self._resp.read().decode("utf-8") ) try: