Object of type float32 is not JSON serializable

I think you should dump your dictionary before setting it to your message object. It is possible that the score that you pass is not serialized before setting them on the message object and thus it is not understood as string. the Tracker generally expects string I believe. maybe print the probabilities to see the type and set them as string perhaps. worth a try. I am not sure