Error handling when using SSH and experiencing a timeout? #731
Unanswered
SelfhostedPro
asked this question in
Q&A
Replies: 1 comment 1 reply
-
Yes I believe docker-modem needs to control this error as well. apocas/docker-modem@f479f7b#diff-701f98c1437169db3aa700d64c6e401c99f50589523af7ad23a4033469850888R25 Could you please test this branch? Check the small change I did. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hey, I'm working on a new version of my docker ui but I'm running into issues when trying to iterate through multiple servers. I've got a dictionary of
Docker
objects (ie. created usingnew Docker()
). When the server is on/accessible it works as expected. When the server is off, ssh2 throws an error and I'm unable to easily catch it. I've got the following function I'm using:Even inside of a try/catch block I'm getting the following error:
Any ideas on how I could catch this or does docker-modem need to utilize the
.on('error'
side of things? (ie. https://github.com/SelfhostedPro/yacht-api/blob/9412777b4e9d929dcfdaf4f795b5abb3d5e8cdf8/server/src/util/sshKeyManager.ts#L106-L125)Link to code/repo: https://github.com/SelfhostedPro/yacht-api/blob/9a56304819149e00d83e9af7b5eec33602deb553/server/src/containers/containers.service.ts#L33-L48
Beta Was this translation helpful? Give feedback.
All reactions