256cats / check-proxy Goto Github PK
View Code? Open in Web Editor NEWAdvanced Node proxy checker (node proxy verifier, node proxy tester) with socks and https support
Home Page: https://www.npmjs.com/package/check-proxy
License: MIT License
Advanced Node proxy checker (node proxy verifier, node proxy tester) with socks and https support
Home Page: https://www.npmjs.com/package/check-proxy
License: MIT License
any parameters for username and password? this is how they are used for request npm
proxyUrl = "http://" + Proxy.Username + ":" + Proxy.Password + "@" + Proxy.Ip + ":" + Proxy.Port;
check-proxy is not working on my device
i tested multiple valid proxies(http(s)/socks) but it always prints:
proxy checked, invalid
//client.js
const checkProxy = require('check-proxy').check;
checkProxy({
testHost: 'ping.rhcloud.com', // put your ping server url here
proxyIP: '127.0.0.1', // proxy ip to test
proxyPort: 44443, // proxy port to test
localIP: '104.237.226.134', // local machine IP address to test
connectTimeout: 15, // curl connect timeout, sec
timeout: 10, // curl timeout, sec
websites: [
{
name: 'example',
url: 'http://www.example.com/',
regex: /example/gim, // expected result - regex
},
{
name: 'yandex',
url: 'http://www.yandex.ru/',
regex: /yandex/gim, // expected result - regex
},
{
name: 'google',
url: 'http://www.google.com/',
regex: function(html) { // expected result - custom function
return html && html.indexOf('google') != -1;
},
},
{
name: 'amazon',
url: 'http://www.amazon.com/',
regex: 'Amazon', // expected result - look for this string in the output
},
]
}).then(function(res) {
console.log('final result', res);
}, function(err) {
console.log('proxy rejected', err);
});
Would it be difficult to check for elite vs anonymous vs transparent proxies?
Would just have to check for the 'via' request header I think
is there some debug mode? because i see the request going to the server from the proxies.
so does not make sense that the proxy is invalid.
Hello,
Can you add ability to check the proxies from a list and save the working proxies in a list?
Also, a way to set command for functions , for example:
-timeout (for timeout set) -url (url here, single or multiple) -type (to select proxy types eg: socks4, socks5, https) -threads (to select how many threads needed for checking) -text (found string from site's source code to validate proxy) -input (txt file that contains proxies) -output (txt file to save the working proxies)
These features would be a great addition.
Looking forward to hear from you
Best Regards
Hi, question is in title, just wondering if there is one, cheers in advance. ^_^
roman@bro-dev:/home/admin/web/nodeProject/proxycheckerserver$ yarn add check-proxy yarn add v1.6.0 (node:3634) [DEP0005] DeprecationWarning: Buffer() is deprecated due to security and usability issues. Please use the Buffer.alloc(), Buffer.allocUnsafe(), or Buffer.from() methods instead. [1/4] Resolving packages... warning check-proxy > geoip-ultralight > rimraf > [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js warning check-proxy > geoip-ultralight > unzip > fstream > [email protected]: please upgrade to graceful-fs 4 for compatibility with current and future versions of Node.js [2/4] Fetching packages... [3/4] Linking dependencies... [4/4] Building fresh packages... [1/1] ⡀ node-libcurl: ^ [-/1] ⡀ waiting... [-/1] ⡀ waiting... [-/1] ⡀ waiting... error /home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl: Command failed. Exit code: 1 Command: node-pre-gyp install --fallback-to-build Arguments: Directory: /home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl Output: node-pre-gyp info it worked if it ends with ok node-pre-gyp info using [email protected] node-pre-gyp info using [email protected] | linux | x64 node-pre-gyp info check checked for "/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl/lib/binding/node_libcurl.node" (not found) node-pre-gyp http GET https://github.com/JCMais/node-libcurl/releases/download/v1.1.0/node_libcurl-v1.1.0-node-v64-linux-x64.tar.gz node-pre-gyp http 404 https://github.com/JCMais/node-libcurl/releases/download/v1.1.0/node_libcurl-v1.1.0-node-v64-linux-x64.tar.gz node-pre-gyp ERR! Tried to download(404): https://github.com/JCMais/node-libcurl/releases/download/v1.1.0/node_libcurl-v1.1.0-node-v64-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp http 404 status code downloading tarball https://github.com/JCMais/node-libcurl/releases/download/v1.1.0/node_libcurl-v1.1.0-node-v64-linux-x64.tar.gz gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | linux | x64 gyp info ok gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | linux | x64 node-pre-gyp ERR! Tried to download(undefined): https://github.com/JCMais/node-libcurl/releases/download/v1.1.0/node_libcurl-v1.1.0-node-v64-linux-x64.tar.gz node-pre-gyp ERR! Pre-built binaries not found for [email protected] and [email protected] (node-v64 ABI, glibc) (falling back to source compile with node-gyp) node-pre-gyp http Connection closed while downloading tarball file gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | linux | x64 gyp info ok gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | linux | x64 gyp info spawn /usr/bin/python2 gyp info spawn args [ '/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/home/roman/.node-gyp/10.4.1/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/home/roman/.node-gyp/10.4.1', gyp info spawn args '-Dnode_gyp_dir=/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=node.lib', gyp info spawn args '-Dmodule_root_dir=/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp info spawn /usr/bin/python2 gyp info spawn args [ '/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-gyp/gyp/gyp_main.py', gyp info spawn args 'binding.gyp', gyp info spawn args '-f', gyp info spawn args 'make', gyp info spawn args '-I', gyp info spawn args '/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl/build/config.gypi', gyp info spawn args '-I', gyp info spawn args '/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-gyp/addon.gypi', gyp info spawn args '-I', gyp info spawn args '/home/roman/.node-gyp/10.4.1/include/node/common.gypi', gyp info spawn args '-Dlibrary=shared_library', gyp info spawn args '-Dvisibility=default', gyp info spawn args '-Dnode_root_dir=/home/roman/.node-gyp/10.4.1', gyp info spawn args '-Dnode_gyp_dir=/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-gyp', gyp info spawn args '-Dnode_lib_file=node.lib', gyp info spawn args '-Dmodule_root_dir=/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl', gyp info spawn args '--depth=.', gyp info spawn args '--no-parallel', gyp info spawn args '--generator-output', gyp info spawn args 'build', gyp info spawn args '-Goutput_dir=.' ] gyp info ok gyp info ok gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | linux | x64 gyp info it worked if it ends with ok gyp info using [email protected] gyp info using [email protected] | linux | x64 gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] gyp info spawn make gyp info spawn args [ 'BUILDTYPE=Release', '-C', 'build' ] make: вход в каталог «/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl/build» make: вход в каталог «/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl/build» CXX(target) Release/obj.target/node_libcurl/src/node_libcurl.o CXX(target) Release/obj.target/node_libcurl/src/node_libcurl.o In file included from ../../nan/nan.h:190:0, from ../src/node_libcurl.cc:25: ../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’: ../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’ return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs); ^ In file included from ../../nan/nan.h:190:0, from ../src/node_libcurl.cc:25: ../../nan/nan_maybe_43_inl.h: In function ‘Nan::Maybe<bool> Nan::ForceSet(v8::Local<v8::Object>, v8::Local<v8::Value>, v8::Local<v8::Value>, v8::PropertyAttribute)’: ../../nan/nan_maybe_43_inl.h:112:15: error: ‘class v8::Object’ has no member named ‘ForceSet’ return obj->ForceSet(isolate->GetCurrentContext(), key, value, attribs); ^ In file included from ../src/node_libcurl.cc:25:0: ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’: ../../nan/nan.h:833:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, func, argc, argv); ^ In file included from ../src/node_libcurl.cc:25:0: ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’: ../../nan/nan.h:833:60: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, func, argc, argv); ^ In file included from ../src/node_libcurl.cc:24:0: /home/roman/.node-gyp/10.4.1/include/node/node.h:172:50: note: declared here NODE_EXTERN v8::Local<v8::Value> MakeCallback( ^ /home/roman/.node-gyp/10.4.1/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’ __attribute__((deprecated(message))) declarator ^ In file included from ../src/node_libcurl.cc:25:0: ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’: ../../nan/nan.h:848:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, symbol, argc, argv); ^ In file included from ../src/node_libcurl.cc:24:0: /home/roman/.node-gyp/10.4.1/include/node/node.h:165:50: note: declared here NODE_EXTERN v8::Local<v8::Value> MakeCallback( ^ /home/roman/.node-gyp/10.4.1/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’ __attribute__((deprecated(message))) declarator ^ In file included from ../src/node_libcurl.cc:25:0: ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’: ../../nan/nan.h:863:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, method, argc, argv); ^ In file included from ../src/node_libcurl.cc:24:0: /home/roman/.node-gyp/10.4.1/include/node/node.h:158:50: note: declared here NODE_EXTERN v8::Local<v8::Value> MakeCallback( ^ /home/roman/.node-gyp/10.4.1/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’ __attribute__((deprecated(message))) declarator ^ In file included from ../src/node_libcurl.cc:25:0: ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’: ../../nan/nan.h:1477:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] )); ^ In file included from ../src/node_libcurl.cc:24:0: /home/roman/.node-gyp/10.4.1/include/node/node.h:172:50: note: declared here NODE_EXTERN v8::Local<v8::Value> MakeCallback( ^ /home/roman/.node-gyp/10.4.1/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’ __attribute__((deprecated(message))) declarator ^ In file included from ../src/node_libcurl.cc:25:0: ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’: ../../nan/nan.h:848:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::String>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, symbol, argc, argv); ^ In file included from ../src/node_libcurl.cc:24:0: /home/roman/.node-gyp/10.4.1/include/node/node.h:165:50: note: declared here NODE_EXTERN v8::Local<v8::Value> MakeCallback( ^ /home/roman/.node-gyp/10.4.1/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’ __attribute__((deprecated(message))) declarator ^ In file included from ../src/node_libcurl.cc:25:0: ../../nan/nan.h: In function ‘v8::Local<v8::Value> Nan::MakeCallback(v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’: ../../nan/nan.h:863:62: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, const char*, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] v8::Isolate::GetCurrent(), target, method, argc, argv); ^ In file included from ../src/node_libcurl.cc:24:0: /home/roman/.node-gyp/10.4.1/include/node/node.h:158:50: note: declared here NODE_EXTERN v8::Local<v8::Value> MakeCallback( ^ /home/roman/.node-gyp/10.4.1/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’ __attribute__((deprecated(message))) declarator ^ In file included from ../src/node_libcurl.cc:25:0: ../../nan/nan.h: In member function ‘v8::Local<v8::Value> Nan::Callback::Call_(v8::Isolate*, v8::Local<v8::Object>, int, v8::Local<v8::Value>*) const’: ../../nan/nan.h:1477:5: warning: ‘v8::Local<v8::Value> node::MakeCallback(v8::Isolate*, v8::Local<v8::Object>, v8::Local<v8::Function>, int, v8::Local<v8::Value>*)’ is deprecated: Use MakeCallback(..., async_context) [-Wdeprecated-declarations] )); ^ In file included from ../src/node_libcurl.cc:24:0: /home/roman/.node-gyp/10.4.1/include/node/node.h:172:50: note: declared here NODE_EXTERN v8::Local<v8::Value> MakeCallback( ^ /home/roman/.node-gyp/10.4.1/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’ __attribute__((deprecated(message))) declarator ^ In file included from ../src/node_libcurl.cc:24:0: /home/roman/.node-gyp/10.4.1/include/node/node.h:172:50: note: declared here NODE_EXTERN v8::Local<v8::Value> MakeCallback( ^ /home/roman/.node-gyp/10.4.1/include/node/node.h:88:42: note: in definition of macro ‘NODE_DEPRECATED’ __attribute__((deprecated(message))) declarator ^ node_libcurl.target.mk:105: ошибка выполнения рецепта для цели «Release/obj.target/node_libcurl/src/node_libcurl.o» make: выход из каталога «/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl/build» make: *** [Release/obj.target/node_libcurl/src/node_libcurl.o] Ошибка 1 gyp ERR! build error gyp ERR! stack Error:
makefailed with exit code: 2 gyp ERR! stack at ChildProcess.onExit (/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-gyp/lib/build.js:276:23) gyp ERR! stack at ChildProcess.emit (events.js:182:13) gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12) gyp ERR! System Linux 4.4.0-128-generic gyp ERR! command "/usr/bin/node" "/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl/lib/binding/node_libcurl.node" "--module_name=node_libcurl" "--module_path=/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl/lib/binding" gyp ERR! cwd /home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl gyp ERR! node -v v10.4.1 gyp ERR! node-gyp -v v3.5.0 gyp ERR! not ok node-pre-gyp ERR! build error node-pre-gyp ERR! stack Error: Failed to execute '/usr/bin/node /home/admin/web/nodeProject/proxycheckerserver/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl/lib/binding/node_libcurl.node --module_name=node_libcurl --module_path=/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl/lib/binding' (1) node-pre-gyp ERR! stack at ChildProcess.<anonymous> (/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-pre-gyp/lib/util/compile.js:83:29) node-pre-gyp ERR! stack at ChildProcess.emit (events.js:182:13) node-pre-gyp ERR! stack at maybeClose (internal/child_process.js:961:16) node-pre-gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:248:5) node-pre-gyp ERR! System Linux 4.4.0-128-generic node-pre-gyp ERR! command "/usr/bin/node" "/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl/node_modules/.bin/node-pre-gyp" "install" "--fallback-to-build" node-pre-gyp ERR! cwd /home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl node-pre-gyp ERR! node -v v10.4.1 node-pre-gyp ERR! node-pre-gyp -v v0.6.39 node-pre-gyp ERR! not ok Failed to execute '/usr/bin/node /home/admin/web/nodeProject/proxycheckerserver/node_modules/node-gyp/bin/node-gyp.js build --fallback-to-build --module=/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl/lib/binding/node_libcurl.node --module_name=node_libcurl --module_path=/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl/lib/binding' (1) node_libcurl.target.mk:105: ошибка выполнения рецепта для цели «Release/obj.target/node_libcurl/src/node_libcurl.o» make: выход из каталога «/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl/build» make: *** [Release/obj.target/node_libcurl/src/node_libcurl.o] Ошибка 1 gyp ERR! build error gyp ERR! stack Error:
make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-gyp/lib/build.js:276:23)
gyp ERR! stack at ChildProcess.emit (events.js:182:13)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:237:12)
gyp ERR! System Linux 4.4.0-128-generic
gyp ERR! command "/usr/bin/node" "/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-gyp/bin/node-gyp.js" "build" "--fallback-to-build" "--module=/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl/lib/binding/node_libcurl.node" "--module_name=node_libcurl" "--module_path=/home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl/lib/binding"
gyp ERR! cwd /home/admin/web/nodeProject/proxycheckerserver/node_modules/node-libcurl
roman@bro-dev:/home/admin/web/nodeProject/proxycheckerserver$ `
Hi @256cats,
First thanks for your awesome package.
I have a basic question. http://ping.rhcloud.com/
not accessible from my internet. What is 'testHost` actually does? Is it optional?
This is an improvement request.
Can we make it able to get a txt file and** check all proxies** then return all information.
The connections should be simulateous and we should be able to have a** maxThreadAmount option**
THIS will pase the proxies in objects from the txt file... Great work btw
I got this error with a custom file and also with the bundled client.js example:
node client.js
module.js:597
return process.dlopen(module, path._makeLong(filename));
^
Error: dlopen(/Users/manu/Desktop/Proxy test/node_modules/node-libcurl/lib/binding/node_libcurl.node, 1): Library not loaded: /Users/travis/lib/libcurl.4.dylib
Referenced from: /Users/manu/Desktop/Proxy test/node_modules/node-libcurl/lib/binding/node_libcurl.node
Reason: Incompatible library version: node_libcurl.node requires version 9.0.0 or later, but libcurl.4.dylib provides version 7.0.0
at Error (native)
at Object.Module._extensions..node (module.js:597:18)
at Module.load (module.js:487:32)
at tryModuleLoad (module.js:446:12)
at Function.Module._load (module.js:438:3)
at Module.require (module.js:497:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (/Users/manu/Desktop/Proxy test/node_modules/node-libcurl/lib/Easy.js:40:29)
at Module._compile (module.js:570:32)
at Object.Module._extensions..js (module.js:579:10)
I believe the release version on npm is older (out of sync) with this version on github. Dependency list when installed via npm shows:
"dependencies": {
"bluebird": ">=3.1.1",
"geoip-ultralight": "0.1.5",
"lodash": "4.17.4",
"node-libcurl": "git+https://github.com/256cats/node-libcurl.git#develop",
"tslib": "1.7.1"
}
VS:
"dependencies": {
"bluebird": ">=3.1.1",
"geoip-ultralight": "0.1.5",
"lodash": "4.17.4",
"tslib": "1.7.1",
"node-libcurl": "1.3.0"
},
You can see libcurl is being pulled from a git repo, which requires git to be installed on the host. An update on npm would be appreciated. Thanks.
import fetch from "node-fetch"
import cp from "check-proxy"
const { check } = cp
TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument must be of type function. Received an instance of Object
at checkListener (node:events:277:3)
at ClientRequest.once (node:events:654:3)
at new ClientRequest (node:_http_client:244:10)
at Object.request (node:https:379:10)
at Object.<anonymous> (/home/lucasb/Dev/preco-supremo/preco-supremo-scraper-store-js/app/node_modules/proxy-agent/node_modules/agent-base/patch-core.js:23:20)
at Object.<anonymous> (/home/lucasb/Dev/preco-supremo/preco-supremo-scraper-store-js/app/node_modules/agent-base/patch-core.js:25:22)
at /home/lucasb/Dev/preco-supremo/preco-supremo-scraper-store-js/app/node_modules/pac-proxy-agent/node_modules/socks-proxy-agent/node_modules/agent-base/patch-core.js:23:20
at file:///home/lucasb/Dev/preco-supremo/preco-supremo-scraper-store-js/app/node_modules/node-fetch/src/index.js:94:20
at new Promise (<anonymous>)
at fetch (file:///home/lucasb/Dev/preco-supremo/preco-supremo-scraper-store-js/app/node_modules/node-fetch/src/index.js:49:9) {
code: 'ERR_INVALID_ARG_TYPE'
}
Works if i remove check-proxy import
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.