Skip to content

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

Open
@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

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions