Skip to content

better error message when JSON response from remote module is not serializable #58

@alfredodeza

Description

@alfredodeza

remoto relies on serializable responses from remote functions. If the return value is returning non-serializable values, then the error will be a traceback from the JSON module in the remote. This should try/except and attempt to craft a nicer error message if that is the case. Potentially with a str() representation of the object.

This is particularly problematic when trying to serialize bytes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions