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

Improve multi coordinator support #164

Open
elias-garcia opened this issue May 12, 2021 · 1 comment
Open

Improve multi coordinator support #164

elias-garcia opened this issue May 12, 2021 · 1 comment

Comments

@elias-garcia
Copy link
Contributor

Improve how we handle POST API requests to multiple coordinators

@elias-garcia
Copy link
Contributor Author

New edge case detected:

Scenario

We have one coordinator + boot coordinator. The next coordinator to forge is the first one, and the node is down, or even the DNS has not been configured properly and the API is not reachable. The boot coordinator already has the create account authorization.

Bug

When sending the create account authorization to both coordinators, the first one will return a connection refused error and the boot coordinator will return a 409 as it already has the create account authorization. hermezjs will then throw the first error, which is the connection refused one, and the error doesn't even have an status or a response.

Proposal

It would be great to filter this errors from not reachable nodes to avoid throwing in this edge case.

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

1 participant