Skip to content

fix - handle byte encode error in set_auth_credentials function#157

Open
saurabhritu wants to merge 1 commit intowialon:masterfrom
saurabhritu:bugfix/fix-set_auth_credentials-function
Open

fix - handle byte encode error in set_auth_credentials function#157
saurabhritu wants to merge 1 commit intowialon:masterfrom
saurabhritu:bugfix/fix-set_auth_credentials-function

Conversation

@saurabhritu
Copy link

fix - handle byte encode error in set_auth_credentials function when broker is initially unavailable.
context - if the MQTT broker was down at when fast-api aap start and became available later, when the fast-mqtt client try to reconnect using fast_mqtt.mqtt_startup after on failed attempt, the function set_
auth_credentials receive byte-encoded that caused encode errors due to no checks in the function.This commit adds handling to prevent crashes during such reconnect scenarios.

…broker is initially unavailable. context - if the MQTT broker was down at when fast-api aap start and became available later, when the fast-mqtt client try to reconnect using fast_mqtt.mqtt_startup after on failed attempt, the function set_auth_credentials receive byte-encoded that caused encode errors due to no checks in the function.This commit adds handling to prevent crashes during such reconnect scenarios.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant