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

Unknown Error Recived when Subscribing. #223

Open
SticksDev opened this issue Mar 4, 2024 · 0 comments
Open

Unknown Error Recived when Subscribing. #223

SticksDev opened this issue Mar 4, 2024 · 0 comments

Comments

@SticksDev
Copy link

SticksDev commented Mar 4, 2024

Hi. I am using AsyncClient to make a connection to a mqtts URL, and it does work, but when I attempt to subscribe to a topic, it errors out with "Unknown Error", and I'm not sure what to do. My code is on GitHub, as this is a open soruce project.

I start connecting here: https://github.com/SticksDev/BambuConnect/blob/master/src-tauri/src/handlers/bambu/mod.rs#L270

The error occures here: https://github.com/SticksDev/BambuConnect/blob/master/src-tauri/src/handlers/bambu/mod.rs#L328 inside of the map_err closure.

Any ideas?

Also, here's some of the logs my program gives when connecting:

[BambuClient::get_device_ips] Connected to MQTT broker
[BambuClient::get_device_ips] Starting discovery for device 0309CA3C2600274 with topic device/0309CA3C2600274/status
[BambuClient::get_device_ips] Subscribing to topic device/0309CA3C2600274/status...
[commands::bambu::discover_devices] devices: Err(Custom { kind: Other, error: "Failed to subscribe to topic device/0309CA3C2600274/status: Unknown Error" })
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

No branches or pull requests

1 participant