Skip to content

convert message to json failed: json: cannot unmarshal number into Go struct field Setting.default of type string #23

@Jille

Description

@Jille

I got this error from the websockets stuff:

convert message to json failed: json: cannot unmarshal number into Go struct field Setting.default of type string
 {"NotificationContainer":{"type":"preference","size":1,"Setting":[{"id":"LastAutomaticMappedPort","label":"","summary":"","type":"int","default":0,"value":25018,"hidden":true,"advanced":false,"group":""}]}}

Looks like default can be either a string or int, so we have to deal with that :/ Presumably value has the same properties.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions