rsxdalv / albion-trader

Albion Trading Tool
MIT License
9 stars 3 forks source link

Cannot find the device specified #4

Open jtara1 opened 5 years ago

jtara1 commented 5 years ago

Before I was getting an error: device must be a string, but after attempting to fix I get this error.

C:\Users\James\Documents\_Github-Projects\albion-trader\index.js:21
    linkType = cap.open(String(device), filter, bufSize, buffer);
                   ^

Error: Error opening adapter: The system cannot find the device specified. (20)
    at C:\Users\James\Documents\_Github-Projects\albion-trader\index.js:21:20
    at C:\Users\James\Documents\_Github-Projects\albion-trader\node_modules\network\lib\index.js:109:11
    at C:\Users\James\Documents\_Github-Projects\albion-trader\node_modules\network\lib\win32.js:15:7
    at Object.callback (C:\Users\James\Documents\_Github-Projects\albion-trader\node_modules\wmic\index.js:244:7)
    at C:\Users\James\Documents\_Github-Projects\albion-trader\node_modules\wmic\node_modules\async\dist\async.js:1312:26
    at C:\Users\James\Documents\_Github-Projects\albion-trader\node_modules\wmic\node_modules\async\dist\async.js:323:20
    at C:\Users\James\Documents\_Github-Projects\albion-trader\node_modules\wmic\index.js:219:9
    at err (C:\Users\James\Documents\_Github-Projects\albion-trader\node_modules\wmic\node_modules\async\dist\async.js:2939:19)
    at wrapper (C:\Users\James\Documents\_Github-Projects\albion-trader\node_modules\wmic\node_modules\async\dist\async.js:270:20)
    at iteratorCallback (C:\Users\James\Documents\_Github-Projects\albion-trader\node_modules\wmic\node_modules\async\dist\async.js:497:17)

Process finished with exit code 1
rsxdalv commented 5 years ago

My guess is that 'device' is undefined since the most common network interface isn't present on your computer. The device finder needs to be changed to incorporate your network device.

On Mon, 5 Aug 2019, 10:04 James T, notifications@github.com wrote:

Before I was getting an error: device must be a string, but after attempting to fix I get this error.

C:\Users\James\Documents_Github-Projects\albion-trader\index.js:21 linkType = cap.open(String(device), filter, bufSize, buffer); ^

Error: Error opening adapter: The system cannot find the device specified. (20) at C:\Users\James\Documents_Github-Projects\albion-trader\index.js:21:20 at C:\Users\James\Documents_Github-Projects\albion-trader\node_modules\network\lib\index.js:109:11 at C:\Users\James\Documents_Github-Projects\albion-trader\node_modules\network\lib\win32.js:15:7 at Object.callback (C:\Users\James\Documents_Github-Projects\albion-trader\node_modules\wmic\index.js:244:7) at C:\Users\James\Documents_Github-Projects\albion-trader\node_modules\wmic\node_modules\async\dist\async.js:1312:26 at C:\Users\James\Documents_Github-Projects\albion-trader\node_modules\wmic\node_modules\async\dist\async.js:323:20 at C:\Users\James\Documents_Github-Projects\albion-trader\node_modules\wmic\index.js:219:9 at err (C:\Users\James\Documents_Github-Projects\albion-trader\node_modules\wmic\node_modules\async\dist\async.js:2939:19) at wrapper (C:\Users\James\Documents_Github-Projects\albion-trader\node_modules\wmic\node_modules\async\dist\async.js:270:20) at iteratorCallback (C:\Users\James\Documents_Github-Projects\albion-trader\node_modules\wmic\node_modules\async\dist\async.js:497:17)

Process finished with exit code 1

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/rsxdalv/albion-trader/issues/4?email_source=notifications&email_token=ABTRXI3XAGQEJT5U3GOGMTTQC7GJJA5CNFSM4IJIDAB2YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HDJXD2Q, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTRXI3LHQJL3NWAGG66XJTQC7GJJANCNFSM4IJIDABQ .

jtara1 commented 5 years ago

I noticed npcap is a dep of npm networks, a dependency of this project

https://www.npmjs.com/package/cap

rsxdalv commented 5 years ago

I see. Can that help solve the problem?

On Tue, 6 Aug 2019, 10:50 James T, notifications@github.com wrote:

I noticed npcap is a dep of npm networks, a dependency of this project

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/rsxdalv/albion-trader/issues/4?email_source=notifications&email_token=ABTRXIZSHPXSS4PBUUT54WTQDEUKVA5CNFSM4IJIDAB2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD3UHVGQ#issuecomment-518552218, or mute the thread https://github.com/notifications/unsubscribe-auth/ABTRXIYNJXOHQEN2WC2P3HTQDEUKVANCNFSM4IJIDABQ .

jtara1 commented 5 years ago

no, not by just installing it