inwx / nodejs-client Goto Github PK
View Code? Open in Web Editor NEWINWX Domrobot Node.js Client
Home Page: https://www.inwx.com/en/
INWX Domrobot Node.js Client
Home Page: https://www.inwx.com/en/
After refactoring the logs in development mode show [object object] for incoming response.
Hello,
I have been using this client for a while but in recent month I started failing the log in:
Request (account.login): {"method":"account.login","params":{"user":"???","pass":"???"}} Response (account.login): {"code":2200,"msg":"Authentication error"}
This is the test code I am using:
const { ApiClient, Language } = require('domrobot-client');
const loginUsername = '???';
const loginPassword = '???';
const apiClient = new ApiClient(ApiClient.API_URL_OTE, Language.EN, true);
async function test() {
const loginResponse = await apiClient.login(loginUsername, loginPassword);
if (loginResponse.code !== 1000) {
console.error('Api error: ' + loginResponse.code + ' message: ' + loginResponse.msg);
} else {
console.log('Successfully logged in !');
}
}
test();
Versions:
Package: 3.0.2
OS: windows 10
Node: 14.18.0
I double checked that the same credentials can be used to log into the web-site.
Help would be appreciated.
Best regards,
Lutz
I've encountered an issue with the API authentication when using a password that is longer than 10 characters.
Error: Api login error. Code: 2200 Message: Authentication error
Please investigate why the API fails to authenticate with passwords longer than 10 characters and provide a fix or guidance on resolving this issue.
The npm depdency request has known security vulnerabilities and is deprecated for long time now.
> npm audit
request *
Severity: moderate
Server-Side Request Forgery in Request - https://github.com/advisories/GHSA-p8p7-x288-28g6
No fix available
node_modules/request
domrobot-client *
Depends on vulnerable versions of request
Depends on vulnerable versions of request-promise-native
node_modules/domrobot-client
request-promise-core *
Depends on vulnerable versions of request
node_modules/request-promise-core
request-promise-native >=1.0.0
Depends on vulnerable versions of request
Depends on vulnerable versions of request-promise-core
node_modules/request-promise-native
4 moderate severity vulnerabilities
This dependency should be replaced by a modern http client. E.g. with the Node.js native and browser compatible fetch API or something else. request/request#3143
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.