# Node-red-contrib-gapit-results not inserting to InflluxDB2.1

**URL:** <https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761>\
**Category:** General\
**Created:** [21 February 2022 18:09 UTC](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761 "2022-02-21T18:09:51Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![John245](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@John245](https://discourse.nodered.org/u/John245)\
**Post date:** [21 February 2022 18:09 UTC](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761/1 "2022-02-21T18:09:51Z")

</div>

The node-red-contrib-gapit-results Node has the following output:

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

I want to insert that in InfluxDB2.1 using the node-red-contrib-influxdb without sucess.

**In the influxdb Node:**  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/e/ded57e33b41066ac585943c92712682a22473c67.png)

Organization: Organization ID in InfluxDB

**Server settings:**  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/8/f841db16d546accbdcf1ba32767a4c844575347d.png)

Token is API token of the user.

Should this work or does the inflluxdb Node not support v2.1 of Influx DB.

* * *

John

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [21 February 2022 19:33 UTC](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761/2 "2022-02-21T19:33:33Z")

</div>

Do you get an error message from InfluxDB when you use those settings?

---

<div class="post-metadata">

**Author:** ![John245](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@John245](https://discourse.nodered.org/u/John245)\
**Post date:** [21 February 2022 20:01 UTC](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761/3 "2022-02-21T20:01:40Z")

</div>

No, where should these errors be reported in InfluxDB? Do you have it working with InfluxDB 2.1?

* * *

John

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [21 February 2022 20:34 UTC](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761/4 "2022-02-21T20:34:52Z")

</div>

The InfluxDB errors will be shown in the node-red debug window.

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [21 February 2022 20:45 UTC](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761/5 "2022-02-21T20:45:24Z")

</div>

You should be using the InfluxDB batch node for this to work!

![Screenshot-43](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/0/7021ff721b551221c599a111818c0fd7935fdf74.png)

---

<div class="post-metadata">

**Author:** ![John245](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@John245](https://discourse.nodered.org/u/John245)\
**Post date:** [22 February 2022 07:59 UTC](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761/6 "2022-02-22T07:59:45Z")

</div>

I'm using that node, see below:  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/a/8a87d7985a431e4e2a822b36dc83356ea436b248.png)

Furthermore there are no error messages:

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

Do you have it working with InfluxDB 2.1?

* * *

John

---

<div class="post-metadata">

**Author:** ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)\
**Post date:** [22 February 2022 09:10 UTC](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761/7 "2022-02-22T09:10:02Z")

</div>

> [@John245](#):
>
> Do you have it working with InfluxDB 2.1?

Yes, I am doing some tests with 2.1.1. If you are not getting errors could it be that the data  
is in the database and your query is not returning the correct time range?

My query:

```auto
from(bucket: "energy")
  |> range(start: v.timeRangeStart, stop: v.timeRangeStop)
  |> filter(fn: (r) => r["_measurement"] == "hhdata")
  |> filter(fn: (r) => r["_field"] == "consumption")

```

And the timerange is set up like this:  
 ![Screenshot-44](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/a/dac1997638356ee18a63c79baa0829895aedafb2.png)

---

<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:** [22 February 2022 10:46 UTC](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761/9 "2022-02-22T10:46:17Z")

</div>

Run a query that fetches everything from the measurement to see whether something has been written, and if so what. If there is already a lot of data there then test it with a new measurement to see what is going on.

---

<div class="post-metadata">

**Author:** ![John245](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@John245](https://discourse.nodered.org/u/John245)\
**Post date:** [22 February 2022 11:02 UTC](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761/10 "2022-02-22T11:02:11Z")

</div>

Thanks for all the support. Did the set-up again and now it is operational.

---

<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:** [22 February 2022 11:03 UTC](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761/11 "2022-02-22T11:03:11Z")

</div>

> [@John245](#):
>
> now it is operational.

It would be useful to know what is different in the setup this time, so that anyone else finding this will know where to look.

---

<div class="post-metadata">

**Author:** ![John245](https://avatars.discourse-cdn.com/v4/letter/j/5f8ce5/32.png) [@John245](https://discourse.nodered.org/u/John245)\
**Post date:** [22 February 2022 13:08 UTC](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761/12 "2022-02-22T13:08:43Z")

</div>

I agree, but I used exactly the identical set-up.

---

<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:** [22 February 2022 13:43 UTC](https://discourse.nodered.org/t/node-red-contrib-gapit-results-not-inserting-to-inflluxdb2-1/58761/13 "2022-02-22T13:43:03Z")

</div>

> [@John245](#):
>
> I used exactly the identical set-up.

Well something must be different or it would have worked then. The trouble with giving up and starting again, rather than working out what the problem is, is that if it happens again you will be back at square 1.
