# Node-red/node\_modules/xbee-api/lib/xbee-api ERROR

**URL:** <https://discourse.nodered.org/t/node-red-node-modules-xbee-api-lib-xbee-api-error/43039>\
**Category:** General\
**Created:** [22 March 2021 19:53 UTC](https://discourse.nodered.org/t/node-red-node-modules-xbee-api-lib-xbee-api-error/43039 "2021-03-22T19:53:29Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![Rezcue](https://avatars.discourse-cdn.com/v4/letter/r/278dde/32.png) [@Rezcue](https://discourse.nodered.org/u/Rezcue)\
**Post date:** [27 March 2021 16:11 UTC](https://discourse.nodered.org/t/node-red-node-modules-xbee-api-lib-xbee-api-error/43039/11 "2021-03-27T16:11:37Z")

</div>

Well well well

i dont get that error so often now but i still get it 😃  
... so its not solved 😃

work around:

> [@Restart flows using Node Red API](https://discourse.nodered.org/t/restart-flows-using-node-red-api/34632):
>
> Hello Please can somebody help with the working example of how to restart flows using API. [Link to Node Red documentation](https://nodered.org/docs/api/admin/methods/post/flows/#headers) I found a similar topic marked as solved, but I cannot really see the solution there. [Link to similar topic](https://discourse.nodered.org/t/solved-restarting-flows-programmatically/9341) I can use GET to retrieve the information about the flows and to get info about the specific flow. I don't know how to structure and use this information to redeploy the flow. My flows [{"id":"38ebc8f0.806f88","type":"tab","label":"My Flow","disabled":false,"in…

 ![Solved](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/a/4abd3ad9a455f036816cde201deaf3c61fbf5148.png)

Get the log from node-red. Check if UnhandledPromiseRejectionWarning is in it. And trigger the flowrestart.

---

_[View the full topic](https://discourse.nodered.org/t/node-red-node-modules-xbee-api-lib-xbee-api-error/43039)._
