diff --git a/api/funkwhale_api/federation/tasks.py b/api/funkwhale_api/federation/tasks.py index 6cb91238d..b59d65d4c 100644 --- a/api/funkwhale_api/federation/tasks.py +++ b/api/funkwhale_api/federation/tasks.py @@ -324,7 +324,6 @@ def fetch(fetch_obj): auth = signing.get_auth(actor.private_key, actor.private_key_id) else: auth = None - auth = None try: if url.startswith("webfinger://"): # we first grab the correpsonding webfinger representation @@ -341,10 +340,14 @@ def fetch(fetch_obj): response = session.get_session().get( auth=auth, url=url, headers={"Accept": "application/activity+json"}, ) - logger.debug("Remote answered with %s", response.status_code) + logger.debug("Remote answered with %s: %s", response.status_code, response.text) response.raise_for_status() except requests.exceptions.HTTPError as e: - return error("http", status_code=e.response.status_code if e.response else None) + return error( + "http", + status_code=e.response.status_code if e.response else None, + message=response.text, + ) except requests.exceptions.Timeout: return error("timeout") except requests.exceptions.ConnectionError as e: