From a0ad6a5b03fe2fef62453295c46436e2ea882974 Mon Sep 17 00:00:00 2001 From: build-token <build-token> Date: Tue, 27 Feb 2024 14:36:38 +0000 Subject: [PATCH] publish: fix: TERMS_VERSION_MISMATCH error generated from commit 5fdbe11a3ea39af44bb1415ce2a850ec178fa3ee --- index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index e874ec8..dc67180 100644 --- a/index.js +++ b/index.js @@ -247584,7 +247584,7 @@ async function verifyUserIdentity( userAddress.escalierEtEtageEtAppartement ? removeMultipleSpaces(userAddress.escalierEtEtageEtAppartement) : '' - + // Second try, trim whitespace pdl = await findUserPdl( `${baseUrl}/enedis_SDE_recherche-point/1.0`, apiAuthKey, @@ -247651,13 +247651,15 @@ async function verifyUserIdentity( log('error', 'PointId does not match') if (isAlternateStart) { - Sentry.captureException('PointId does not match: Alternate start', { + Sentry.captureException('PointId no longer match', { tags: { section: 'verifyUserIdentity' }, + extra: { foundPdl: pdl }, }) - throw new Error(errors.TERMS_VERSION_MISMATCH) + throw new Error(errors.USER_ACTION_NEEDED_PERMISSIONS_CHANGED) } else { Sentry.captureException('PointId does not match', { tags: { section: 'verifyUserIdentity' }, + extra: { foundPdl: pdl }, }) throw new Error(errors.LOGIN_FAILED) } -- GitLab