Skip to content

don't allow NaNs in posted json #34

Description

@mathisonian

With the current setup its possible for the python client to send invalid json to the server (causing a hard to debug 500 there), because by default json.dump allows NaNs to be included in the generated json. I propose setting allow_nan=False in all json.dump calls to avoid this and generate a clear error on the client.

cc @freeman-lab

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions