From 29e019178a57ebb7e919bf2932355d11edc49c3e Mon Sep 17 00:00:00 2001 From: Onkar Ravgan Date: Mon, 13 Nov 2023 12:28:46 +0530 Subject: [PATCH] Nifi wrong password fix --- .../src/metadata/ingestion/source/pipeline/nifi/client.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ingestion/src/metadata/ingestion/source/pipeline/nifi/client.py b/ingestion/src/metadata/ingestion/source/pipeline/nifi/client.py index a85229fb64be..981a58a92afa 100644 --- a/ingestion/src/metadata/ingestion/source/pipeline/nifi/client.py +++ b/ingestion/src/metadata/ingestion/source/pipeline/nifi/client.py @@ -85,6 +85,9 @@ def token(self) -> str: ) self._token = res.text + if res.status_code not in (200, 201): + raise HTTPError(res.text) + except HTTPError as err: logger.error( f"Connection error retrieving the Bearer Token to access Nifi - {err}"