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

Malformed UTF data cause connection lost #29

Closed
ah01 opened this issue Sep 1, 2017 · 3 comments
Closed

Malformed UTF data cause connection lost #29

ah01 opened this issue Sep 1, 2017 · 3 comments
Assignees
Labels
Milestone

Comments

@ah01
Copy link
Member

ah01 commented Sep 1, 2017

When some payload contains malformed UTF application close conection.

"AMQJS0005E Internal error. Error Message: AMQJS0009E Malformed UTF data:fc 7e -41., Stack trace: Error: AMQJS0009E Malformed UTF data:fc 7e -41.
    at G (https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.min.js:17:339)
    at x._getPayloadString (https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.min.js:70:63)
    at x.get payloadString [as payloadString] (https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.min.js:71:303)
    at k.client.onMessageArrived (http://g4t.io/wall/wall.js:1:1188)
    at k._receiveMessage (https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.min.js:52:517)
    at k._receivePublish (https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.min.js:52:71)
    at k._handleMessage (https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.min.js:47:379)
    at k._on_socket_message (https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.min.js:43:8)
    at WebSocket.<anonymous> (https://cdnjs.cloudflare.com/ajax/libs/paho-mqtt/1.0.1/mqttws31.min.js:19:132)"
@ah01 ah01 added the bug label Sep 1, 2017
@ah01 ah01 closed this as completed in 98c438b Sep 1, 2017
@ah01 ah01 self-assigned this Sep 1, 2017
@VisComKreiser
Copy link

i get the same error with the test server test.mosquitto.org
is there a way to catch malformed UTF data?

@ah01 ah01 added this to the v0.4.1 milestone Feb 21, 2019
@ah01
Copy link
Member Author

ah01 commented Feb 21, 2019

@VisComKreiser sorry, this bug was fixed long time ago, but it was not released yet, till now.

Please, check version 0.4.1, also available as demo

@VisComKreiser
Copy link

thanks for the fast reply!

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

No branches or pull requests

2 participants