Difference between java script and node ..? - express

Error: querySrv ETIMEOUT _mongodb._tcp.cluster0.00g3e.mongodb.net
at QueryReqWrap.onresolve [as oncomplete] (dns.js:210:19) {
errno: undefined,
code: 'ETIMEOUT',
syscall: 'querySrv',
hostname: '_mongodb._tcp.cluster0.00g3e.mongodb.net'
}

Related

errno: -2, syscall: 'open', code: 'ENOENT' error when i start expo app

Error: ENOENT: no such file or directory, open '/Users/Tamarapreye/Desktop/preye/mycode/FUTASU-APP/http:/127.0.0.1:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false'
at Object.openSync (node:fs:582:3)
at Object.readFileSync (node:fs:450:35)
at getCodeFrame (/Users/Tamarapreye/Desktop/preye/mycode/FUTASU-APP/node_modules/metro/src/Server.js:949:18)
at Server._symbolicate (/Users/Tamarapreye/Desktop/preye/mycode/FUTASU-APP/node_modules/metro/src/Server.js:1022:22)
at runMicrotasks (<anonymous>)
at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async Server._processRequest (/Users/Tamarapreye/Desktop/preye/mycode/FUTASU-APP/node_modules/metro/src/Server.js:429:7) {
errno: -2,
syscall: 'open',
code: 'ENOENT',
path: '/Users/Tamarapreye/Desktop/preye/mycode/FUTASU-APP/http:/127.0.0.1:19000/node_modules/expo/AppEntry.bundle?platform=android&dev=true&hot=false'
}
i have deleted nodemudules , rebooted my Macbook still doesnt work

ECONNRESET error when performing a GET request

I'm trying to make a GET request to a REST Aviation Weather API called AVWX but after performing the request it holds for about 10 seconds and then I get the following error displayed in the console:
throw er; // Unhandled 'error' event
^
Error: read ECONNRESET
at TLSWrap.onStreamRead (node:internal/stream_base_commons:211:20)
Emitted 'error' event on ClientRequest instance at:
at TLSSocket.socketErrorListener (node:_http_client:447:9)
at TLSSocket.emit (node:events:394:28)
at emitErrorNT (node:internal/streams/destroy:157:8)
at emitErrorCloseNT (node:internal/streams/destroy:122:3)
at processTicksAndRejections (node:internal/process/task_queues:83:21) {
errno: -4077,
code: 'ECONNRESET',
syscall: 'read'
Here's my HTTPS.request function call:
HTTPS.request({
hostname: 'avwx.rest',
port: 443,
path: '/api/metar/KJFK',
method: 'GET',
headers: {
'Authorization': 'myToken',
},
}, res => {
console.log(`statusCode: ${res.statusCode}`);
res.on('data', d => {
process.stdout.write(d);
});
});
Thank you for your help!
As #Ever said in a comment on the question, I was missing req.end().

I have trouble with constructing a vue.js project by using npm or yarn

I have trouble with constructing a vue.js project by using npm or yarn.
the cmd: $ vue init webpack my-project
# Installing project dependencies ...
# ========================
events.js:292
throw er; // Unhandled 'error' event
^
Error: spawn C:\WINDOWS\system32\cmd.exe; ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:269:19)
at onErrorNT (internal/child_process.js:465:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:275:12)
at onErrorNT (internal/child_process.js:465:16)
at processTicksAndRejections (internal/process/task_queues.js:80:21) {
errno: -4058,
code: 'ENOENT',
syscall: 'spawn C:\\WINDOWS\\system32\\cmd.exe;',
path: 'C:\\WINDOWS\\system32\\cmd.exe;',
spawnargs: [ '-c', 'yarn install' ]
}
the picture

Error: spawn pod ENOENT when running `yarn run install-pods`

I'm trying to set up react native on my machine and when running yarn run install-pods I get the following error.
$ ./cli.js installPods
events.js:292
throw er; // Unhandled 'error' event
^
Error: spawn pod ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
at onErrorNT (internal/child_process.js:468:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
at onErrorNT (internal/child_process.js:468:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn pod',
path: 'pod',
spawnargs: [ 'install', '--project-directory=./hosts/native/ios' ]
}
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
musketeer % yarn run install-pods
yarn run v1.17.3
$ ./cli.js installPods
events.js:292
throw er; // Unhandled 'error' event
^
Error: spawn pod ENOENT
at Process.ChildProcess._handle.onexit (internal/child_process.js:268:19)
at onErrorNT (internal/child_process.js:468:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21)
Emitted 'error' event on ChildProcess instance at:
at Process.ChildProcess._handle.onexit (internal/child_process.js:274:12)
at onErrorNT (internal/child_process.js:468:16)
at processTicksAndRejections (internal/process/task_queues.js:84:21) {
errno: -2,
code: 'ENOENT',
syscall: 'spawn pod',
path: 'pod',
spawnargs: [ 'install', '--project-directory=./hosts/native/ios' ]
}
error Command failed with exit code 1.
Try Running
npx react-native doctor
and it will show all common errors and try to fix them automatically

Failed to install redis-commander in debian strech

I tried to install redis-commander but when i run redis-commander i am getting the following errors
redis-commander
{ Error: ENOENT : no such file or directory, open '/root/.redis-commander'
errno: -2,
code: 'ENOENT',
syscall: 'open',
path: '/root/.redis-commander' }
No config found or was invalid.
Using default configuration.
No Save: true
listening on 0.0.0.0 : 8081
events.js:137
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE 0.0.0.0:8081
at Object._errnoException (util.js:1003:13)
at _exceptionWithHostPort (util.js:1024:20)
at Server.setupListenHandle [as _listen2] (net.js:1366:14)
at listenInCluster (net.js:1407:12)
at doListen (net.js:1522:7)
at process._tickCallback (internal/process/next_tick.js:152:19)
root#debian:/home/midhun#
Means address (port) already in use by some other process