Comments (5)
"Operation timed out" can occur for different reasons:
- Your computer failed to send the message in time
- The server did not respond in time
"Could not publish message" can occur due to the timeout.
It's difficult to pinpoint the culprit from the raw exceptions alone. It can be anything from a temporary network failure to a faulty network driver. Maybe you can try with a localhost server and see if that helps. π
from aiomqtt.
You can also try to increase the timeout
parameter and see if that changes things. The default timeout is 10 seconds.
from aiomqtt.
- The broker and device not at the same region so maybe there are issue with timeout so I will try this:
You can also try to increase the
timeout
parameter and see if that changes things. The default timeout is 10 seconds.
-
Maybe timeout should be different for etch QOS?
-
Did this two error messages can be for same operation? of publish?
- for example i try to publish "a" to topic "1" with qos1
- Then for some reason timeout occur and both messages will received at Exception catch?
try:
await self.clients.get(broker).publish(topic, msg, qos=1)
except MqttError as identifier:
_logging.error("Mqtt publishing Failed", extra={
"data": {"exception": identifier, "message": msg, "topic": topic}})
"Operation timed out" can occur for different reasons:
- Your computer failed to send the message in time
- The server did not respond in time
"Could not publish message" can occur due to the timeout.It's difficult to pinpoint the culprit from the raw exceptions alone. It can be anything from a temporary network failure to a faulty network driver. Maybe you can try with a localhost server and see if that helps. π
Thanks
from aiomqtt.
Maybe timeout should be different for etch QOS?
That would make sense. Good thing is that timeout
is already a parameter so you can do this as a user already. π
As long as you have problems with timeouts in the system, you might also see other strange errors. :) Fix the timeouts first and foremost. Then, if you still get other errors, we can have a look at those. π
from aiomqtt.
Hey there, I'm guessing that we can close this as there has been no more discussion. If there's anything left unclear, please reopen!
from aiomqtt.
Related Issues (20)
- Typing warnings in IDE on Client methods HOT 2
- AttributeError: module 'aiomqtt' has no attribute '__version__'
- session persistence with protocol version 5 HOT 1
- Pin Paho to <2.0 HOT 2
- Make aiomqtt compatible with paho v2 HOT 10
- Topic.matches should be used when doing == HOT 4
- How to get the IP of a failed connection attempt
- strange reconnection HOT 2
- MQTT broker reports a disconnection/reconnection... but no aiomqtt.MqttError is raised HOT 4
- Exceptions on __aenter__ not handled. HOT 2
- Reconnect Bug HOT 1
- Cannot instantiate a client due to internal mqtt problem HOT 2
- Issues with uvicorn on Windows 10 HOT 5
- [BUG] Cannot install version 2.0.0 with paho-mqtt 2.0.0 HOT 2
- [BUG] 127.0.0.1/localhost Work Incorrectly HOT 3
- Do not send messages for a long time mqtt automatically disconnects HOT 1
- Can't read incoming messages in pytests HOT 8
- No convenient way to get message without getting locked into a for loop HOT 2
- Can aiomqtt queue has a ring buffer optionοΌ for high frequense in-comming messages? HOT 1
- Is it necessary to support mqtt connection pool?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from aiomqtt.