sync-request
sync-request copied to clipboard
Possibly leaked handle?
Running tests using sync-request and Jest has Jest detecting a possibly leaked handle.
PROCESSWRAP
at start (node_modules/sync-rpc/lib/index.js:33:13)
at sendMessage (node_modules/sync-rpc/lib/index.js:133:17)
at createClient (node_modules/sync-rpc/lib/index.js:173:27)
at Object.<anonymous> (node_modules/sync-request/lib/index.js:16:14)
I am also facing the same issue. Is there any update?
Had a similar problem with Jest so I wrote a library called sync-request-curl.
The usage is the same.
sync-request-curl is free from this bug and has better performances from leveraging node-libcurl, but doesn't have close to the same level of compatibility as sync-request. It only works with recent versions of NodeJS and has no support for JavaScript in the Browser.
I believe this issue is also closely linked with #137.
The cause is sync-rpc and is explained in issue 10:
- https://github.com/ForbesLindesay/sync-rpc/issues/10