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

Timeout Error #8

Open
noandasan opened this issue Jan 3, 2020 · 3 comments
Open

Timeout Error #8

noandasan opened this issue Jan 3, 2020 · 3 comments

Comments

@noandasan
Copy link

check text [314] TIMEOUT ERROR
(node:7844) UnhandledPromiseRejectionWarning: TypeError: Cannot read property 'subarray' of null
at C:\Users\it\Documents\GitHub\biometric\node_modules\node-zklib\zklibtcp.js:213:46
(node:7844) 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:7844) [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.
check text [374] Error: TIMEOUT ERROR
check attendances { data: [], err: 'Error: TIMEOUT ERROR' }
check users { data: [], err: 'TIMEOUT ERROR' }

https://snipboard.io/LoQyDG.jpg

@caobo171
Copy link
Owner

caobo171 commented Jan 9, 2020

This log showed that you ran into TIMEOUT error ,and just that ...
You need to provide more info about this situation like what 's your type of device , and make sure your ip is correct , your network is available and there's no other device connecting with this device ( because TCP connect doesn't allow concurrents connecting)

@deepshrestha
Copy link

deepshrestha commented Sep 14, 2022

How do we define the type of device as it only needs IP and port to connect to the device? The same problem happens again and again, and it gets resolved when I physically turn off the device. What is the permanent solution for this?

I am using this version "node-zklib": "^1.3.0"

@thezeeshantariq
Copy link

I am also facing this issue while using it with ZKTeco MB-360. I am running a CRON job, which reads attendance from the machine after every 5 minutes. It runs fine 3-4 times, but after that, it just shows this error.

Promise Rejected
TypeError: Cannot read properties of undefined (reading 'subarray')

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

4 participants