# Error sending message to iot hub (AMQP)

**URL:** <https://discourse.nodered.org/t/error-sending-message-to-iot-hub-amqp/48415>\
**Category:** General\
**Created:** [14 July 2021 16:33 UTC](https://discourse.nodered.org/t/error-sending-message-to-iot-hub-amqp/48415 "2021-07-14T16:33:28Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarioTorres](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mariotorres/32/44909_2.png) [@MarioTorres](https://discourse.nodered.org/u/MarioTorres)\
**Post date:** [14 July 2021 16:33 UTC](https://discourse.nodered.org/t/error-sending-message-to-iot-hub-amqp/48415/1 "2021-07-14T16:33:28Z")

</div>

Good day.  
I am trying to send a message to iothub but I get this error. This was working fine until a few weeks ago. Do you know why it usually fails?

 ![before](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/e/0e82cd13e4b37fd6af90a78a43b577be72859adc.png)  
 ![after](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/9/19eddfde2486b5811e0859a45eb07fbc6f0f22bd.png)

How do i fix it?

---

<div class="post-metadata">

**Author:** ![MarioTorres](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/mariotorres/32/44909_2.png) [@MarioTorres](https://discourse.nodered.org/u/MarioTorres)\
**Post date:** [14 July 2021 18:03 UTC](https://discourse.nodered.org/t/error-sending-message-to-iot-hub-amqp/48415/2 "2021-07-14T18:03:16Z")

</div>

I get this error

 ![error](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/2/e28d943be900994e4205a04a1ffcc2545f915d43.png)

---

<div class="post-metadata">

**Author:** ![Gunner](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gunner/32/43582_2.png) [@Gunner](https://discourse.nodered.org/u/Gunner)\
**Post date:** [15 July 2021 04:17 UTC](https://discourse.nodered.org/t/error-sending-message-to-iot-hub-amqp/48415/3 "2021-07-15T04:17:41Z")

</div>

Hello and welcome to the forum.

The key error I see is the "could not connect", and the red "disconnected" note on the node.

So, some setting in your node (which we can't see), or in your hardware (which we also can't see) has changed. Node settings? Hub Power (turn it off and on again)? Hub connection to your router? Monkeys?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [13 September 2021 04:17 UTC](https://discourse.nodered.org/t/error-sending-message-to-iot-hub-amqp/48415/4 "2021-09-13T04:17:44Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
