Skip to content
Snippets Groups Projects
Commit 7134fcce authored by unknown's avatar unknown
Browse files

fix password with special characters were not working

added log.debug in case data is throwing an error
parent b8435063
Loading
......@@ -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)
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment