Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Connecting bug getting UnhandledPromiseRejectionWarning when using example code #4

Closed
domanows opened this issue Nov 20, 2019 · 6 comments

Comments

@domanows
Copy link

While running example code with the following configuration
var elk = new Elk(
2601, // port
'192.168.39.6',
{
secure: true,
rejectUnauthorized: false,
secureProtocol: 'TLSv1_method'
}
);

I am getting UnhandledPromiseRejectionWarning even though connection appears to be successful.
connected
(node:7967) UnhandledPromiseRejectionWarning: Timout occured before Arming Status (as) was received.
(node:7967) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:7967) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

@sgentry
Copy link
Owner

sgentry commented Nov 26, 2019

Which version are you using?

@domanows
Copy link
Author

domanows commented Dec 2, 2019 via email

@sgentry
Copy link
Owner

sgentry commented Dec 14, 2019

Sorry for the delay. Busy time of year and I forgot to come back to this.

I've been using the elkmon beta version (2.0.0-beta.1) but that shouldn't have anything different that would affect connecting to the M1XEP. I'm guessing your suspicions are correct and it has something to do with SSL. I'm assuming you can connect without using SSL, correct? Here's my system info.

System Type M1G
Hardware Version: .13
Boot Version: 3.3.6
Firmware: 5.3.10
M1XEP Firmware: 2.0.42 (Updated to 2.0.44 today)

I've been running the Elk RP Software on Windows 10 for several years now with no issues. Looks like you need to make sure to update your M1XEP, for Win 10 compatibility. Are you able to able to connect to port 2601 using the RP software?

@domanows
Copy link
Author

domanows commented Dec 16, 2019 via email

@sgentry
Copy link
Owner

sgentry commented Dec 17, 2019

I'm not sure why they discourage updating like they do. I prefer to keep my system updated.

If you're wanting to verify which M1XEP firmware is installed, you can check that from RP Software after you have successfully connected.

Send/Rcv --> Enroll Update Control and Devices

@domanows
Copy link
Author

domanows commented Jan 2, 2020 via email

@sgentry sgentry closed this as completed Mar 10, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants