# How to catch this error?

**URL:** <https://discourse.nodered.org/t/how-to-catch-this-error/56034>\
**Category:** General\
**Created:** [3 January 2022 12:29 UTC](https://discourse.nodered.org/t/how-to-catch-this-error/56034 "2022-01-03T12:29:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sfedo](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@sfedo](https://discourse.nodered.org/u/sfedo)\
**Post date:** [3 January 2022 12:29 UTC](https://discourse.nodered.org/t/how-to-catch-this-error/56034/1 "2022-01-03T12:29:43Z")

</div>

Hello  
I am using this library: node-red-contrib-cloud-firestore to connect with my firestore database.

It works pretty good, but sometimes I get some unexpected error:

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

As you can see, it's: Failed to start HTTP/2 stream.

I dont know how to solve this error and I was already asking on the GitHub page of the package for help, but they dont know eather.

Now I would like to catch this error and if the error is there, then my nodered should restart. But I dont know how to catch it? I was trying with msg.payload and msg.error, but it doesnt works.

Looks like its not an output of the node

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/b/b/bba8c55f04d545fe0690b9f1dc4c24a3bc044063.png)

How I can track this and then restart nodered?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [3 January 2022 12:49 UTC](https://discourse.nodered.org/t/how-to-catch-this-error/56034/2 "2022-01-03T12:49:20Z")

</div>

Have you tried the Catch node to see if the error is catchable? That will depend on how exactly the node is logging the error.

---

<div class="post-metadata">

**Author:** ![sfedo](https://avatars.discourse-cdn.com/v4/letter/s/3da27b/32.png) [@sfedo](https://discourse.nodered.org/u/sfedo)\
**Post date:** [3 January 2022 12:55 UTC](https://discourse.nodered.org/t/how-to-catch-this-error/56034/3 "2022-01-03T12:55:22Z")

</div>

I just tried it:

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/0/3/036e26f0d0ee5c1cf67b3c9a9b34a85b235426b2.png)

For the catch node I choose my subflow, but I dont get anything shown in the debugg node.

---

<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:** [4 March 2022 12:56 UTC](https://discourse.nodered.org/t/how-to-catch-this-error/56034/4 "2022-03-04T12:56:05Z")

</div>

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