tripwire icon indicating copy to clipboard operation
tripwire copied to clipboard

Can't resolve "require('tripwire')" properly with iisnode

Open joshburgess opened this issue 8 years ago • 4 comments

I'm getting the following error when trying to use this with iisnode to guard against processes hanging up:

Application has thrown an uncaught exception and is terminated: Error: The specified procedure could not be found.

?\C:\Sites\subdomain.domain.com\node_modules\tripwire\lib\native\win32\0.10\x64\tripwire.node at Error (native) at Object.Module._extensions..node (module.js:440:18) at Module.load (module.js:357:32) at Function.Module._load (module.js:314:12) at Module.require (module.js:367:17) at require (internal/module.js:16:19) at Object. (C:\Sites\subdomain.domain.com\node_modules\tripwire\lib\tripwire.js:14:18) at Module._compile (module.js:413:34) at Object.Module._extensions..js (module.js:422:10) at Module.load (module.js:357:32)

Any ideas?

joshburgess avatar Apr 06 '16 16:04 joshburgess

+1

shlomisas avatar May 12 '17 09:05 shlomisas

I had this problem too. I don't know what version of Windows the npm binaries are targeting but they did not work on my x64 Windows 10 box. I recompiled the native binaries and it worked (although not quite as I was hoping... was hoping I could recover after the exception but apparently it just keeps throwing exceptions until I recycle the code)?)

kristianoye avatar Jan 14 '18 02:01 kristianoye

V8 has an isolate method named CancelTerminateExecution(). It seems like this could be used to resume the thread after it is terminated.

kristianoye avatar Jan 14 '18 08:01 kristianoye

Any solutions on this error, getting the same issue on windows 10.

arpit-systango avatar Aug 09 '18 13:08 arpit-systango