From 349e6daa854651189f81139466cf9b0649d50202 Mon Sep 17 00:00:00 2001 From: kasimos <6337990+kasimos@users.noreply.github.com> Date: Tue, 14 Jul 2026 07:28:09 +0200 Subject: [PATCH] fix: wrong hana single tenant credential connection loop --- hana/lib/HANAService.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/hana/lib/HANAService.js b/hana/lib/HANAService.js index 7fc956d9c..901bc0ea6 100644 --- a/hana/lib/HANAService.js +++ b/hana/lib/HANAService.js @@ -59,7 +59,11 @@ class HANAService extends SQLService { service.server.major = dbc.server.major || service.server.major return dbc } catch (err) { - if (err.code === 10) return // authentication error, see error handler below + if (err.code === 10) { + // authentication error + LOG.debug('connection failed:', err) + throw new Error(`Pool failed connecting`, { cause: err }) + } if (attempt < maxRetries) { LOG.debug('connection failed:', err, '- retrying attempt', attempt, 'of', maxRetries) return createSingleTenant(tenant, attempt + 1)