Comments (3)
I haven't tested with node v10, but the error is related to routeros-client
, are you catching the login promise error?
There are two errors you must catch, one from the promise when you try to connect:
api.connect().then((client) => {
// Connected
}).catch((err) => {
// Connection error
});
// Or with async/await
try {
const client = await api.connect();
} catch(err) {
// Connection error
}
The other error occurs when you are connected but for some reason the connection fails:
const api = new RouterOSClient({
...
});
api.on('error', (err) => {
// Connection error
});
from routeros-client.
Thanks. I will add api.on('error', ..) and let you know, if no more app crashing with Unhandled exception error.
I was catching errors for connect, but not for the connected connection fail situation.
from routeros-client.
Closing due to inactivity.
from routeros-client.
Related Issues (17)
- improve remove, update and etc to query for the id of the entry HOT 2
- Switching between servers. HOT 17
- speed-test stream HOT 3
- getting an exception while deleting a record
- Connect to multiple devices at the same time
- Where Filter Not Working With Update, Delete, Remove.
- I cant add user to radius server via /tool/user-manage/add anyone can help me HOT 1
- Cannot connect through VPN HOT 11
- problem on torch pppoe interface
- Error: Username or password is invalid HOT 2
- Error with TypeScript 2.9.2 HOT 4
- Stream does not work HOT 2
- TypeError: RouterOSClient is not a constructor HOT 2
- Request: an add time function for some timer parameters HOT 1
- RosException HOT 5
- cant get /interface/wireless/monitor Information HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from routeros-client.