Skip to content
New issue

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 handling: avoid uncaught errors #251

Open
antoinep92 opened this issue Mar 22, 2022 · 2 comments · May be fixed by #267
Open

Error handling: avoid uncaught errors #251

antoinep92 opened this issue Mar 22, 2022 · 2 comments · May be fixed by #267

Comments

@antoinep92
Copy link

I was hit by a crypto exception from sign_request which is not handled by the lib and cannot be caught at top-level because it's asynchronous. I think it's related to #236, but looking at the code, error handling is lacking in multiple locations, which is why I think it makes sense to look at it with a broader perspective.

I realize this is free software, and I'm willing to make a PR for this. But before working on this I'd like to check if there was a chance it would be merged ? The idea would be to extend the scope of existing try/catch and add missing ones, at each "async level", so that errors don't crash the node process and are easier to backtrace.

@antoinep92 antoinep92 changed the title Error handling Error handling: avoid uncaught errors Mar 22, 2022
@darioackermann
Copy link

Hey! Not sure if this is still a thing for you, but I'm willing to review and merge any PR regarding this into my fork. :-)

@antoinep92
Copy link
Author

It is still a thing, but pretty low priority right now unfortunately. But thanks for your work trying to revive this, I'll try to push something when I can.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants