# InfluxDB error on node-red

**URL:** <https://discourse.nodered.org/t/influxdb-error-on-node-red/61547>\
**Category:** General\
**Created:** [20 April 2022 13:17 UTC](https://discourse.nodered.org/t/influxdb-error-on-node-red/61547 "2022-04-20T13:17:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![mayelle.26](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mayelle.26](https://discourse.nodered.org/u/mayelle.26)\
**Post date:** [20 April 2022 13:17 UTC](https://discourse.nodered.org/t/influxdb-error-on-node-red/61547/1 "2022-04-20T13:17:42Z")

</div>

Hello,  
I would like to put my TTN data via node-red on influxDB to use Grafana eventually. However I can't configure node-red-contrib-influxdb in the feed:

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

I get the following error messages:  
`[error] [influxdb out:5fb00ab2a8cc7560] Error: A 401 Unauthorized error occurred: {"code":"unauthorized","message":"Unauthorized"}`  
or sometimes when I change the configuration :  
`"HttpError: unauthorized access"`

Thank you for your answers

---

<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:** [20 April 2022 14:29 UTC](https://discourse.nodered.org/t/influxdb-error-on-node-red/61547/2 "2022-04-20T14:29:29Z")

</div>

I see you are using InfluxDB v2. Did you create a user token in InfluxDB and enter it in the node configuration?  
 ![Screenshot-13](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/a/1a42cafd646cceb01eb541f405cda85675851d04.png)

---

<div class="post-metadata">

**Author:** ![mayelle.26](https://avatars.discourse-cdn.com/v4/letter/m/a88e57/32.png) [@mayelle.26](https://discourse.nodered.org/u/mayelle.26)\
**Post date:** [20 April 2022 14:34 UTC](https://discourse.nodered.org/t/influxdb-error-on-node-red/61547/3 "2022-04-20T14:34:36Z")

</div>

Thank you very much, it worked!!  
I am new in this field, I did not know how to proceed

---

<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 June 2022 14:34 UTC](https://discourse.nodered.org/t/influxdb-error-on-node-red/61547/4 "2022-06-19T14:34:50Z")

</div>

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