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 string into Go struct field TranscodeSession.progress of type float64 #22

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

Comments

@Jille
Copy link
Contributor

Jille commented Sep 23, 2019

I'm getting this error when using the websockets.

convert message to json failed: json: cannot unmarshal string into Go struct field TranscodeSession.progress of type float64

This is what it chokes on:

{"NotificationContainer":{"type":"transcodeSession.end","size":1,"TranscodeSession":[{"key":"/transcode/sessions/f546195c58e8a52a-com-plexapp-android","throttled":true,"complete":false,"progress":"27.5","speed":"0","duration":2665119,"remaining":13519,"context":"streaming","sourceVideoCodec":"mpeg4","sourceAudioCodec":"mp3","videoDecision":"transcode","audioDecision":"copy","protocol":"hls","container":"mpegts","videoCodec":"h264","audioCodec":"mp3","audioChannels":2,"transcodeHwRequested":false,"timeStamp":"1569248610.8982544"}]}}

It doesn't seem to like Plex encoding integers as strings. (https://play.golang.org/p/NsXo0qlUMQw confirms that Go refuses to decode the string into an integer)

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