Jmeter to send a packet to InfluxDB V2.2 but responseCode is 401

Hello

I use Jmeter to send a packet to InfluxDB V2.2, and receive an authentication error message indicating that the database token has been configured, thanks.


2022-04-24 22:47:47,210 INFO o.a.j.e.StandardJMeterEngine: Notifying test listeners of end of test
2022-04-24 22:47:47,210 INFO o.a.j.v.b.BackendListener: Worker ended
2022-04-24 22:47:47,213 INFO o.a.j.v.b.i.InfluxdbBackendListenerClient: Sending last metrics to InfluxDB
2022-04-24 22:47:47,216 INFO o.a.j.v.b.i.HttpMetricsSender: Destroying
2022-04-24 22:47:47,219 ERROR o.a.j.v.b.i.HttpMetricsSender: Error writing metrics to influxDB Url: http://192.168.79.128:8086/write?db=influx25, responseCode: 401, responseBody: {“code”:“unauthorized”,“message”:“unauthorized access”}
2022-04-24 22:47:47,220 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, local)
2022-04-24 22:50:18,250 INFO o.a.j.e.StandardJMeterEngine: Running the test!
2022-04-24 22:50:18,250 INFO o.a.j.s.SampleEvent: List of sample_variables:

Hello @haoli1106,
Can you try with an all access token just to sanity check?
And then try recreating a new token scoped to that specific bucket?

+++++++++++++++++
2022-11-06 14:34:47,846 INFO o.a.j.v.b.BackendListener: Worker ended
2022-11-06 14:34:47,848 INFO o.a.j.v.b.i.InfluxdbBackendListenerClient: Sending last metrics
2022-11-06 14:34:47,854 INFO o.a.j.v.b.i.HttpMetricsSender: Destroying
2022-11-06 14:34:47,856 INFO o.a.j.g.u.JMeterMenuBar: setRunning(false, local)

below are settings at BackeListner

getting above error at Jmeter, while trying to send Jmeter metrics to Influxdb - can any one have the issue? using Jmeter 5.0 + Influxdb2.0

Can you try this: in your influxdbUrl, remove org, and change bucket=jmeter to db=jmeter