We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Error reported as follows
node:events:489 throw er; // Unhandled 'error' event ^ Error: connect ECONNREFUSED 10.10.10.54:8006 at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1570:16) Emitted 'error' event on ClientRequest instance at: at TLSSocket.socketErrorListener (node:_http_client:495:9) at TLSSocket.emit (node:events:511:28) at emitErrorNT (node:internal/streams/destroy:151:8) at emitErrorCloseNT (node:internal/streams/destroy:116:3) at process.processTicksAndRejections (node:internal/process/task_queues:82:21) { errno: -4078, code: 'ECONNREFUSED', syscall: 'connect', address: '10.10.10.54', port: 8006 }
In the code below does not handle the req error
cv4pve-api-javascript/src/index.js
Lines 295 to 340 in c58f4cb
We can add an error event listener on the req object to handle potential request errors.
error
req.on('error', (error) => { this.#error(error); reject(error); });
This way we can use catch to handle errors in our own code
catch
Please evaluate it.
No response
latest
Windows, Mac OSX, Linux, Other
The text was updated successfully, but these errors were encountered:
No branches or pull requests
What happened?
Error reported as follows
In the code below does not handle the req error
cv4pve-api-javascript/src/index.js
Lines 295 to 340 in c58f4cb
We can add an
error
event listener on the req object to handle potential request errors.This way we can use
catch
to handle errors in our own codeExpected behavior
Please evaluate it.
Relevant log output
No response
Proxmox VE Version
latest
Version (bug)
latest
Version (working)
No response
On what operating system are you experiencing the issue?
Windows, Mac OSX, Linux, Other
Pull Request
The text was updated successfully, but these errors were encountered: