Code Monkey home page Code Monkey logo

Comments (5)

frederikaalund avatar frederikaalund commented on June 14, 2024

"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.

frederikaalund avatar frederikaalund commented on June 14, 2024

You can also try to increase the timeout parameter and see if that changes things. The default timeout is 10 seconds.

from aiomqtt.

vitalerter avatar vitalerter commented on June 14, 2024
  1. 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.

  1. Maybe timeout should be different for etch QOS?

  2. 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.

frederikaalund avatar frederikaalund commented on June 14, 2024

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.

empicano avatar empicano commented on June 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.