Skip to content

How to handle invalid input! #1022

@xuweidongkobe

Description

@xuweidongkobe

Given a MMS custom service that expects JSON as input,
If the input is invalid JSON such as { "image": "I missed a quote}
MMS will return
{ "code": 500, "type": "InternalServerException", "message": "Worker died." } and reload model.
Is something can do to verify the accuracy of input to avoid such direct returns and model reload when it cannot be modified input?

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