Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jille opened this issue Sep 23, 2019 · 0 comments

Comments

@Jille
Copy link
Contributor

Jille commented Sep 23, 2019

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants