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 crash on serialization error #328

Merged
merged 2 commits into from
Jun 22, 2023
Merged

Fix crash on serialization error #328

merged 2 commits into from
Jun 22, 2023

Conversation

marcelveldt
Copy link
Contributor

Add a few safety guards when we receive unexpected data from the SDK.
This handles the case where one of the Attribute values is malformed, resulting in the complete node not able to serialize anymore which stalls the server completely even as the websocket api is no longer useable.

Skip (and log) those attributes.

Also clean up of some of the serialization code and remove redundant code.
Type conversions for serializing are now (only) done in the json encoder.

@balloob balloob merged commit 381fd1a into main Jun 22, 2023
3 checks passed
@balloob balloob deleted the fix-serialization-crash branch June 22, 2023 19:04
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