# Error handling for node-red-contrib-unifi

**URL:** <https://discourse.nodered.org/t/error-handling-for-node-red-contrib-unifi/81885>\
**Category:** General\
**Tags:** unifi\
**Created:** [9 October 2023 13:59 UTC](https://discourse.nodered.org/t/error-handling-for-node-red-contrib-unifi/81885 "2023-10-09T13:59:25Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddb157](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ddb157/32/83579_2.png) [@ddb157](https://discourse.nodered.org/u/ddb157)\
**Post date:** [9 October 2023 13:59 UTC](https://discourse.nodered.org/t/error-handling-for-node-red-contrib-unifi/81885/1 "2023-10-09T13:59:25Z")

</div>

Thank you for the great node. It has added a ton of functionality for my smart home triggers.

Last night, my unifi controller went down and node red was unable to retrieve data.

How can I create a trigger when the node has an error: I tried recreating the errors but even when the node reports it cannot connect, nothing is output in either the debug window or by using the status node directed to the unifi node.

Here are some examples:

![OK](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/b/fb25111aab8d7ef38680120aefc30afd762ad367.png)  
 ![econnrefused](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/4/04f490bb5b51ace16525d9dda26d3a3220a81cc0.png)

This may be a generic question and not a unifi node specific issue.

Thanks,

Devan

---

<div class="post-metadata">

**Author:** ![ddb157](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ddb157/32/83579_2.png) [@ddb157](https://discourse.nodered.org/u/ddb157)\
**Post date:** [9 October 2023 14:08 UTC](https://discourse.nodered.org/t/error-handling-for-node-red-contrib-unifi/81885/2 "2023-10-09T14:08:50Z")

</div>

Nevermind. My debug node was only looking at the status nodes payload, not the entire message.

---

<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:** [8 December 2023 14:09 UTC](https://discourse.nodered.org/t/error-handling-for-node-red-contrib-unifi/81885/3 "2023-12-08T14:09:00Z")

</div>

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