go-plex-client icon indicating copy to clipboard operation
go-plex-client copied to clipboard

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

Open Jille opened this issue 5 years ago • 0 comments

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.

Jille avatar Sep 23 '19 16:09 Jille