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

Expose/propagate PoolTimeout errors from indy-vdr #973

Open
gmulhearn-anonyome opened this issue Sep 11, 2023 · 2 comments
Open

Expose/propagate PoolTimeout errors from indy-vdr #973

gmulhearn-anonyome opened this issue Sep 11, 2023 · 2 comments

Comments

@gmulhearn-anonyome
Copy link
Contributor

It would be nice if aries_vcx_core/src/errors/mapping_indyvdr.rs propagated more error information. Currently, most indy-vdr errors are being mapped into Unknown vcx core errors, so we lose information. there is a TODO in this file which notes this, however I'm creating a github issue for it as a reminder.

I came across this when attempting to wrap the IndyVdrLedgeRead impl with some additional "retry X times on pool timeout errors" logic, since i was encountering some flakey ledger issues that a simple retry would fix.

But there is no ideal way of identifying a pool timeout error, since error details are hidden behind UnknownError. IMO we should at least propagate pool timeout errors as a new vcx-core error type.

@Patrik-Stas
Copy link
Contributor

Patrik-Stas commented Sep 11, 2023

Yeah that sounds fair

That being said, I want to note that indy-vdr implementation a lot more sensitive to 1) outdated genesis files and 2) misbehaving nodes compared to the one from indy-sdk/vdrtools - in both cases you might get timeout.

In Absa we have rust script to built up latest genesis files & tool to check for misbehaving nodes (and you can then tell indy-vdr to exclude them) - these can help getting indy-vdr working smoothly. I'll be sharing those. Ideally some changes would be done to improve indy-vdr to make it more resistant towards this sort of conditions

@gmulhearn
Copy link
Contributor

gmulhearn commented Jun 7, 2024

closing, as this seems to be fixed with the move to aries_vcx_ledger

issue still present, but should be more easy to solve. mapping to unknown occurs here: https://github.com/hyperledger/aries-vcx/blob/main/aries/aries_vcx_ledger/src/errors/mapping_indyvdr.rs#L21

@gmulhearn gmulhearn reopened this Jun 7, 2024
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

No branches or pull requests

3 participants