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

matchName throws TypeError: Cannot read property 'match' of undefined #30

Closed
Narmdo opened this issue Oct 27, 2019 · 3 comments
Closed

Comments

@Narmdo
Copy link

Narmdo commented Oct 27, 2019

I'm getting an issue caused by text within matchName being undefined.

Here's my stack trace.

    at o (...\node_modules\find-process\lib\find_process.js:25:1)
    at i.parseTable.filter (...\node_modules\find-process\lib\find_process.js:148:1)
    at Array.filter (<anonymous>)
    at ChildProcess.r.on (...\node_modules\find-process\lib\find_process.js:137:1)
    at ChildProcess.emit (events.js:182:13)
    at maybeClose (internal/child_process.js:962:16)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:251:5)

What would be causing this?

@mitchwilliamson
Copy link

I'm unable to reproduce this myself, but it is causing issues for some of our users.

image

We'll likely be resolving this by adding an undefined check in matchName in our own fork, but I'd imagine this is caused by a bug in the parsing of WMIC output in this library.

@Narmdo
Copy link
Author

Narmdo commented Nov 15, 2019

I'm doing exactly that right now. Couldn't replicate myself either, but have had several users have this issue.

@yibn2008
Copy link
Owner

I'll add an non-string check for matchName to avoid error

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

3 participants