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

Fix: Any invalid message in a response crashed the entire response #109

Merged
merged 1 commit into from
Oct 6, 2022

Conversation

hoh
Copy link
Member

@hoh hoh commented Sep 23, 2022

The code serving the API may return messages that are not valid according the latest version of the schemas. Ignore them with an optional log instead of failing the parsing of the entire response.

This is an alternative to aleph-im/aleph-message#27 . Putting this logic in the client library allows users to add more options on how invalid messages should be handled.

The code serving the API may return messages that are not valid according the latest version of the schemas. Ignore them with an optional log instead of failing the parsing of the entire response.
@hoh hoh merged commit 77c4ae2 into master Oct 6, 2022
@hoh hoh deleted the hoh-handle-invalid branch October 6, 2022 17:47
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 this pull request may close these issues.

2 participants