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 serialization error #900

Merged
merged 2 commits into from
Jul 17, 2019
Merged

Fix serialization error #900

merged 2 commits into from
Jul 17, 2019

Conversation

fpagnoux
Copy link
Member

@fpagnoux fpagnoux commented Jul 16, 2019

Fixes #898
Fixes #899
Fixes openfisca/openfisca-france#1360

Alternative solution to #898

Bug fix

  • Fix serialisation error introduced in 34.2.9 in route /trace (Web API)
    • This was causing an Internal Server Error
    • Notably, numpy arrays were not being parsed correctly as not JSON serialisable

@@ -197,6 +197,18 @@ def test_flat_trace(tracer):
assert trace['b<2019>']['dependencies'] == []


def test_serialize_vectorial_param(tracer):
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bonjourmauko bonjourmauko added the kind:fix Bugs are defects and failure demand. label Jul 16, 2019
@bonjourmauko bonjourmauko force-pushed the fix-json-serialization-trace branch from 5ee8f6e to a731178 Compare July 17, 2019 00:15
@bonjourmauko bonjourmauko merged commit 0fbdd00 into master Jul 17, 2019
@bonjourmauko bonjourmauko deleted the fix-json-serialization-trace branch July 17, 2019 00:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind:fix Bugs are defects and failure demand.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Serialization error in Web API with numpy arrays Erreur de serialisation de certaines paramètres (API)
3 participants