Skip to content

json unmarshal of payload does not support custom type errors #70

@lllwvlvwlll

Description

@lllwvlvwlll

reference: https://github.com/gorilla/rpc/blob/master/v2/json2/server.go#L165

Per the link above, if using a custom type in args which fails to parse, resulting in a verbose error message, there is a false assumption that the json params is not a structured object.

The subsequent attempt to parse out into a map interface will also fail because the data is actually structured, but the content is malformed.

This results in a misleading error message

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions