From 7134fcceed7328473e97e5ce3c31088e2d668038 Mon Sep 17 00:00:00 2001 From: unknown <unknown@example.com> Date: Wed, 26 Jan 2022 15:57:01 +0100 Subject: [PATCH] fix password with special characters were not working added log.debug in case data is throwing an error --- src/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/index.js b/src/index.js index 903cc75..923a539 100644 --- a/src/index.js +++ b/src/index.js @@ -160,7 +160,7 @@ async function authenticate(login, password, baseUrl, apiAuthKey) { AuthKey: apiAuthKey, 'Content-Type': 'application/x-www-form-urlencoded' }, - form: { + formData: { login: login, pass: password }, @@ -211,6 +211,7 @@ async function getData(response, baseUrl, apiAuthKey) { throw errors.UNKNOWN_ERROR } } catch (error) { + log('debug', 'Error from getAllAgregatsByAbonnement') throw new Error(errors.VENDOR_DOWN) } } -- GitLab