# \#javascript

**URL:** https://community.influxdata.com/tag/javascript/91.md

[Latest](https://community.influxdata.com/latest.md) · [Categories](https://community.influxdata.com/categories.md) · [Tags](https://community.influxdata.com/tags.md)

---

## [How to write with resource token by JS client library, @influxdata/influxdb3-client?](https://community.influxdata.com/t/how-to-write-with-resource-token-by-js-client-library-influxdata-influxdb3-client/58213)

<div class="topic-metadata">

**Author:** [@nao](https://community.influxdata.com/u/nao)\
**Replies:** 2\
**Last updated:** [January 5, 2026, 2:16pm UTC](https://community.influxdata.com/t/how-to-write-with-resource-token-by-js-client-library-influxdata-influxdb3-client/58213 "2026-01-05T14:16:35Z")

</div>

Hi. I tried the JS client library, @influxdata/influxdb3-client. I found that it uses v2 api in client.write(). But I could not find a way to write successfully with a resource token defined for the database. The code i…

---

## [NodeJS tutorial setup does not work](https://community.influxdata.com/t/nodejs-tutorial-setup-does-not-work/35122)

<div class="topic-metadata">

**Author:** [@Silvere\_Letellier](https://community.influxdata.com/u/Silvere_Letellier)\
**Replies:** 9\
**Last updated:** [September 29, 2024, 5:47pm UTC](https://community.influxdata.com/t/nodejs-tutorial-setup-does-not-work/35122 "2024-09-29T17:47:53Z")

</div>

I am new to Influx and as I follow the first tutorial to setup the NodeJS package @influxdata/influxdb3-client I get the error message: TypeError: Channel credentials must be a ChannelCredentials object at new Chann…

---

## [Bug in Javascript client SDK and cloud error](https://community.influxdata.com/t/bug-in-javascript-client-sdk-and-cloud-error/33620)

<div class="topic-metadata">

**Author:** [@RickBullotta](https://community.influxdata.com/u/RickBullotta)\
**Replies:** 4\
**Last updated:** [March 20, 2024, 11:37am UTC](https://community.influxdata.com/t/bug-in-javascript-client-sdk-and-cloud-error/33620 "2024-03-20T11:37:47Z")

</div>

Specifications Client Version: Latest NPM version 1.33.2 InfluxDB Version: Influx Cloud, powered by TSM, storage engine V2, on AWS (free account) Platform: Node version 20.11.1 - issue occurs on both Windows and Linux c…

---

## [InfluxDB 2.6 (Docker) no access with javascript (node.js)](https://community.influxdata.com/t/influxdb-2-6-docker-no-access-with-javascript-node-js/27963)

<div class="topic-metadata">

**Author:** [@corne](https://community.influxdata.com/u/corne)\
**Replies:** 0\
**Last updated:** [January 2, 2023, 11:19am UTC](https://community.influxdata.com/t/influxdb-2-6-docker-no-access-with-javascript-node-js/27963 "2023-01-02T11:19:35Z")

</div>

Hello and a happy new year! I am trying to setup influxdb 2.6 using docker. The instance is running and i can access the influxdb page in my localhost. But when I try to access the database with javascript it gives me…

---

## [Editing and customizing Legend on a line graph](https://community.influxdata.com/t/editing-and-customizing-legend-on-a-line-graph/23451)

<div class="topic-metadata">

**Author:** [@riz](https://community.influxdata.com/u/riz)\
**Replies:** 1\
**Last updated:** [January 1, 2023, 3:59am UTC](https://community.influxdata.com/t/editing-and-customizing-legend-on-a-line-graph/23451 "2023-01-01T03:59:20Z")

</div>

Hi everyone. I’m using Giraffe library to display line graphs and I had a question about the dynamic legend that shows up (for each data point) on the graph. Is there a way to remove or rename the heading for each colum…

---

## [Which npm packet allow use schema.measurementTagValues function](https://community.influxdata.com/t/which-npm-packet-allow-use-schema-measurementtagvalues-function/26531)

<div class="topic-metadata">

**Author:** [@andiub97](https://community.influxdata.com/u/andiub97)\
**Replies:** 0\
**Last updated:** [September 13, 2022, 4:45pm UTC](https://community.influxdata.com/t/which-npm-packet-allow-use-schema-measurementtagvalues-function/26531 "2022-09-13T16:45:37Z")

</div>

Hi everyone, I know InfluxDB2 flux language provides a convenient way to get all the tags values for a specific bucket/measurement combination, using the schema.measurementTagValues function. I was asking which npm packe…

---

## [writePoints on the getWriteApi object of NodeJs library for many records](https://community.influxdata.com/t/writepoints-on-the-getwriteapi-object-of-nodejs-library-for-many-records/26207)

<div class="topic-metadata">

**Author:** [@risingtiger](https://community.influxdata.com/u/risingtiger)\
**Replies:** 3\
**Last updated:** [August 22, 2022, 7:19am UTC](https://community.influxdata.com/t/writepoints-on-the-getwriteapi-object-of-nodejs-library-for-many-records/26207 "2022-08-22T07:19:04Z")

</div>

I’m using the NodeJs library to write many records at once via the writePoints method. The nature of the infrastructure I’m gathering telemetry from is that the MCU stores telemetry points locally on the PCB storage, the…

---

## [Connect InfluxDB to vue app for visualization](https://community.influxdata.com/t/connect-influxdb-to-vue-app-for-visualization/24811)

<div class="topic-metadata">

**Author:** [@Florian99](https://community.influxdata.com/u/Florian99)\
**Replies:** 3\
**Last updated:** [April 28, 2022, 7:49am UTC](https://community.influxdata.com/t/connect-influxdb-to-vue-app-for-visualization/24811 "2022-04-28T07:49:05Z")

</div>

I have a InfluxDB that i want to connect to my vue app. I already made the connection to the DB and I’m able to log the data in the terminal (not console) with the code below: import { InfluxDB, Point } from ‘@influxdat…

---

## [Giraffe: Line + Single stat HOWTO?](https://community.influxdata.com/t/giraffe-line-single-stat-howto/24077)

<div class="topic-metadata">

**Author:** [@jeleb](https://community.influxdata.com/u/jeleb)\
**Replies:** 3\
**Last updated:** [March 8, 2022, 10:07am UTC](https://community.influxdata.com/t/giraffe-line-single-stat-howto/24077 "2022-03-08T10:07:42Z")

</div>

Hi, I would like to add a line with a single stat with giraffe like in the example: Storybook But I don’t know how to do it. Do I have to use a “line” type with some parameters from “single stat” ? Is it a “custom” t…

---

## [Correcting a graph plotted with Giraffe](https://community.influxdata.com/t/correcting-a-graph-plotted-with-giraffe/24009)

<div class="topic-metadata">

**Author:** [@riz](https://community.influxdata.com/u/riz)\
**Replies:** 2\
**Last updated:** [February 26, 2022, 3:01am UTC](https://community.influxdata.com/t/correcting-a-graph-plotted-with-giraffe/24009 "2022-02-26T03:01:26Z")

</div>

Hi, I’m using Giraffe to plot a graph for some data I’m getting from influx. So far everything is plotted correctly with all the correct values. The only problem I’m having is, I’m trying to remove closed shaded regions …

---

## [Lost metrics due to RequestTimedOutError](https://community.influxdata.com/t/lost-metrics-due-to-requesttimedouterror/18893)

<div class="topic-metadata">

**Author:** [@diglez](https://community.influxdata.com/u/diglez)\
**Replies:** 6\
**Last updated:** [September 13, 2021, 6:41pm UTC](https://community.influxdata.com/t/lost-metrics-due-to-requesttimedouterror/18893 "2021-09-13T18:41:58Z")

</div>

I have an instance of Influx 2.0 running on a docker container receiving data from a Node.js app also running on a separate docker container and writing to the Influx instance through the npm api for influx. After a abou…

---

## [Giraffe - Plot data from flux query](https://community.influxdata.com/t/giraffe-plot-data-from-flux-query/21471)

<div class="topic-metadata">

**Author:** [@Federico\_Tudino](https://community.influxdata.com/u/Federico_Tudino)\
**Replies:** 2\
**Last updated:** [August 31, 2021, 5:20pm UTC](https://community.influxdata.com/t/giraffe-plot-data-from-flux-query/21471 "2021-08-31T17:20:50Z")

</div>

Hi, I’m currently working with Giraffe, I was able to plot the example provided on github, but I can’t go any further. I get the data but I don’t know how to visualize it. How can I generate a Plot from a query? Are the…

---

## [Querying Data with Javascript (influx-client-js) for influx 1.8](https://community.influxdata.com/t/querying-data-with-javascript-influx-client-js-for-influx-1-8/20276)

<div class="topic-metadata">

**Author:** [@TheInfluxChris](https://community.influxdata.com/u/TheInfluxChris)\
**Replies:** 1\
**Last updated:** [June 8, 2021, 9:39am UTC](https://community.influxdata.com/t/querying-data-with-javascript-influx-client-js-for-influx-1-8/20276 "2021-06-08T09:39:52Z")

</div>

Hello everyone, I am just getting started with InfluxDB so I expect this issue to be sort of simple. I could not find a solution to my specific problem though. I think the problem is that I use influx v. 1.8. and the d…

---

## [Telegraf output influxdb\_v2 plugin is not compatible with Point.toLineProtocol() from node client](https://community.influxdata.com/t/telegraf-output-influxdb-v2-plugin-is-not-compatible-with-point-tolineprotocol-from-node-client/19860)

<div class="topic-metadata">

**Author:** [@empz](https://community.influxdata.com/u/empz)\
**Replies:** 2\
**Last updated:** [May 13, 2021, 9:45am UTC](https://community.influxdata.com/t/telegraf-output-influxdb-v2-plugin-is-not-compatible-with-point-tolineprotocol-from-node-client/19860 "2021-05-13T09:45:40Z")

</div>

So I have a RabbitMQ queue with messages containing a single point in line protocol. These points are generated by the Node.js client library by doing: const point = new Point("some-measurement") .timestamp(162083849…
