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

Win2012-R2: Error: The specified procedure could not be found. #434

Closed
1 task done
0sander opened this issue Sep 28, 2022 · 2 comments
Closed
1 task done

Win2012-R2: Error: The specified procedure could not be found. #434

0sander opened this issue Sep 28, 2022 · 2 comments
Labels
DONE Implementation is done, but not yet merged into master libnut Root cause located in libnut

Comments

@0sander
Copy link

0sander commented Sep 28, 2022

Version
nut.js: 2.3.0
node.js: 18.9.1
OS: Windows-Server-2012-r2
MS Visual C++ Redistributable 14.32.31332

Short overview

Error: The specified procedure could not be found.

Issue occurs on

  • Virtual machine

Detailed error description

When running the example code below in Windows Server 2012 R2 I run into the following error:

C:\Users\Administrator\Code\fms-e2e-chrome>node test.js
C:\Users\Administrator\Code\fms-e2e-chrome\node_modules\bindings\bindings.js:121

        throw e;
        ^

Error: The specified procedure could not be found.
\\?\C:\Users\Administrator\Code\fms-e2e-chrome\node_modules\@nut-tree\libnut-win
32\build\Release\libnut.node
    at Module._extensions..node (node:internal/modules/cjs/loader:1203:18)
    at Module.load (node:internal/modules/cjs/loader:997:32)
    at Module._load (node:internal/modules/cjs/loader:838:12)
    at Module.require (node:internal/modules/cjs/loader:1021:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at bindings (C:\Users\Administrator\Code\fms-e2e-chrome\node_modules\binding
s\bindings.js:112:48)
    at Object.<anonymous> (C:\Users\Administrator\Code\fms-e2e-chrome\node_modul
es\@nut-tree\libnut-win32\index.js:1:35)
    at Module._compile (node:internal/modules/cjs/loader:1119:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1173:10)
    at Module.load (node:internal/modules/cjs/loader:997:32) {
  code: 'ERR_DLOPEN_FAILED'
}

Steps to reproduce error

Additional content

const { mouse, left, right, up, down } = require("@nut-tree/nut-js");

(async () => {
    await mouse.move(left(500));
    await mouse.move(up(500));
    await mouse.move(right(500));
    await mouse.move(down(500))
})();
@s1hofmann
Copy link
Member

Hi @0sander 👋

So far I haven't tested nut.js on Windows Server environments.
I did some research on the reported error and noticed that at the moment, it's not possible to run nut.js on Windows Server environments since they don't provide an API it is relying on.
I'll see if there's a way to work this out.

Best regards

Simon

@s1hofmann s1hofmann added the libnut Root cause located in libnut label Sep 29, 2022
@s1hofmann
Copy link
Member

@0sander Would you give @nut-tree/nut-js@next a try?

@s1hofmann s1hofmann added the DONE Implementation is done, but not yet merged into master label Jan 14, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DONE Implementation is done, but not yet merged into master libnut Root cause located in libnut
Projects
None yet
Development

No branches or pull requests

2 participants