# Updated to latest node-red-contrib-influxdb. Can't retrieve data, Unhandled promise rejection

**URL:** https://discourse.nodered.org/t/updated-to-latest-node-red-contrib-influxdb-cant-retrieve-data-unhandled-promise-rejection/49951
**Category:** General
**Created:** [20 August 2021 10:17 UTC](https://discourse.nodered.org/t/updated-to-latest-node-red-contrib-influxdb-cant-retrieve-data-unhandled-promise-rejection/49951 "2021-08-20T10:17:20Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![coppo23](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@coppo23](https://discourse.nodered.org/u/coppo23)
#### Post date: [20 August 2021 10:17 UTC](https://discourse.nodered.org/t/updated-to-latest-node-red-contrib-influxdb-cant-retrieve-data-unhandled-promise-rejection/49951/1 "2021-08-20T10:17:21Z")

</div>

Using Influx 1.8.x all ok until I updated the influxdb node to the latest as it has support for influx 2.x and was planning on updating. The writing to influx is still ok but I cannot retrieve data from within node red using either SELECT queries or new FLUX queries.  
SELECT queries give me nothing returned. This was all working fine until I updated the influx node  
FLUX queries (using 1.8 flux) crash node red. (Not really persisted with this yet.)

I have recreated the influxdb config - added a new connection. No difference.  
In the syslog there are a lot of unhandled promise rejection messages from the influxdb node

Help?

---

<div class="post-metadata">

### Author: ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)
#### Post date: [20 August 2021 11:17 UTC](https://discourse.nodered.org/t/updated-to-latest-node-red-contrib-influxdb-cant-retrieve-data-unhandled-promise-rejection/49951/2 "2021-08-20T11:17:57Z")

</div>

I think you will need to raise with the author.

However, in many cases, you don't really need a node for this since InfluxDB has a REST interface and Node-RED is natively very good at that sort of thing. 🙂

---

<div class="post-metadata">

### Author: ![coppo23](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@coppo23](https://discourse.nodered.org/u/coppo23)
#### Post date: [20 August 2021 11:36 UTC](https://discourse.nodered.org/t/updated-to-latest-node-red-contrib-influxdb-cant-retrieve-data-unhandled-promise-rejection/49951/3 "2021-08-20T11:36:09Z")

</div>

Thanks. In parallel I’m setting up a 2.x database and will (sort of) start from scratch with that. May try rest access. It was just that the update of the node has broken running influx 1.8.x code – a bit frustrating – and I hoped for a quick fix so stuff stays working whilst I play with 2.x  
Andy

---

<div class="post-metadata">

### Author: ![coppo23](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@coppo23](https://discourse.nodered.org/u/coppo23)
#### Post date: [20 August 2021 15:02 UTC](https://discourse.nodered.org/t/updated-to-latest-node-red-contrib-influxdb-cant-retrieve-data-unhandled-promise-rejection/49951/4 "2021-08-20T15:02:22Z")

</div>

Ok - Done some more playing.

It seems that 0.6.1 of node-red-contrib-influxdb may be broken - (may well be a UTS fault on my part.) Totally failed to get 0.6.1 to work on a 1.8.x influx database using non FLUX or FLUX requests. I have reverted to revision 0.4.1 and all is working smoothly again.

I can send data to the database but cannot retrieve it from within NR. The influxdb node does not output anything. Reverting to 0.4.1 fixes it.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [20 August 2021 15:56 UTC](https://discourse.nodered.org/t/updated-to-latest-node-red-contrib-influxdb-cant-retrieve-data-unhandled-promise-rejection/49951/5 "2021-08-20T15:56:45Z")

</div>

How have you configured the database configuration in the failing version?

---

<div class="post-metadata">

### Author: ![coppo23](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@coppo23](https://discourse.nodered.org/u/coppo23)
#### Post date: [20 August 2021 16:17 UTC](https://discourse.nodered.org/t/updated-to-latest-node-red-contrib-influxdb-cant-retrieve-data-unhandled-promise-rejection/49951/6 "2021-08-20T16:17:53Z")

</div>

Hi. Not quite sure what you mean. Nothing about influx has changed. The updated node 0.6.1 is set to point at the dB using standard select queries as before. 0.6.1 doesn't work, 0.4.1 does.

Andy

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [20 August 2021 16:57 UTC](https://discourse.nodered.org/t/updated-to-latest-node-red-contrib-influxdb-cant-retrieve-data-unhandled-promise-rejection/49951/7 "2021-08-20T16:57:00Z")

</div>

I was asking how you have configured the server in the node.

---

<div class="post-metadata">

### Author: ![coppo23](https://avatars.discourse-cdn.com/v4/letter/c/a4c791/32.png) [@coppo23](https://discourse.nodered.org/u/coppo23)
#### Post date: [20 August 2021 18:34 UTC](https://discourse.nodered.org/t/updated-to-latest-node-red-contrib-influxdb-cant-retrieve-data-unhandled-promise-rejection/49951/8 "2021-08-20T18:34:55Z")

</div>

Sorry - being a bit slow here. The only config I am aware of is 1.x type, password and username ip address and port. I am not using https. The same config as used for 0.4.1 other than I have to choose server type 1.x (not 1.8 FLUX). I can't check details exactly as I have now reverted to 0.4.1 to get the system working again.

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [20 August 2021 18:47 UTC](https://discourse.nodered.org/t/updated-to-latest-node-red-contrib-influxdb-cant-retrieve-data-unhandled-promise-rejection/49951/9 "2021-08-20T18:47:30Z")

</div>

> [@coppo23](#):
>
> I have to choose server type 1.x (not 1.8 FLUX

That's what I was concerned about. Others have been confused by that setting.

---

<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: [19 October 2021 18:48 UTC](https://discourse.nodered.org/t/updated-to-latest-node-red-contrib-influxdb-cant-retrieve-data-unhandled-promise-rejection/49951/10 "2021-10-19T18:48:26Z")

</div>

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