# Getting response code = 400, missing db error while posting data from jmeter to influx

**URL:** https://community.influxdata.com/t/getting-response-code-400-missing-db-error-while-posting-data-from-jmeter-to-influx/26922
**Category:** InfluxDB 2
**Created:** [October 11, 2022, 8:36am UTC](https://community.influxdata.com/t/getting-response-code-400-missing-db-error-while-posting-data-from-jmeter-to-influx/26922 "2022-10-11T08:36:34Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![Sangeeta\_Agarwal](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/sangeeta_agarwal/32/9845_2.png) [@Sangeeta\_Agarwal](https://community.influxdata.com/u/Sangeeta_Agarwal)
#### Post date: [October 11, 2022, 8:36am UTC](https://community.influxdata.com/t/getting-response-code-400-missing-db-error-while-posting-data-from-jmeter-to-influx/26922/1 "2022-10-11T08:36:34Z")

</div>

I am trying to post jmeter data to influxdb.  
I am getting above error.

I tried to debug it but no success in it. Please help  
Getting below error  
Error writing metrics to influxDB Url: [http://localhost:8086/write?org=poc&bucket=jmeter\_demo](http://localhost:8086/write?org=poc&bucket=jmeter_demo), responseCode: 400, responseBody: {“code”:“invalid”,“message”:“missing db”}

---

<div class="post-metadata">

### Author: ![Anaisdg](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/anaisdg/32/6401_2.png) [@Anaisdg](https://community.influxdata.com/u/Anaisdg)
#### Post date: [October 19, 2022, 6:28pm UTC](https://community.influxdata.com/t/getting-response-code-400-missing-db-error-while-posting-data-from-jmeter-to-influx/26922/2 "2022-10-19T18:28:34Z")

</div>

Hello @Sangeeta_Agarwal,  
can you please share either:  
a) a screenshot of your buckets?  
b) use the CLI bucket list command  
c) use the API to get a list of your buckets?

And share the output?  
Thank you

Just to verify, you’re using 2.x?

---

<div class="post-metadata">

### Author: ![Tim\_my](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/tim_my/32/11360_2.png) [@Tim\_my](https://community.influxdata.com/u/Tim_my)
#### Post date: [November 6, 2022, 6:17am UTC](https://community.influxdata.com/t/getting-response-code-400-missing-db-error-while-posting-data-from-jmeter-to-influx/26922/3 "2022-11-06T06:17:17Z")

</div>

Hello @Anaisdg I faced this error code also. I am running api behind nginx. Attached is the image of error

 ![curl_message](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/6/633dd7f80203d42454695b3c63acf0fc57ab7d4d.png)

---

<div class="post-metadata">

### Author: ![Tim\_my](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/tim_my/32/11360_2.png) [@Tim\_my](https://community.influxdata.com/u/Tim_my)
#### Post date: [November 6, 2022, 6:46am UTC](https://community.influxdata.com/t/getting-response-code-400-missing-db-error-while-posting-data-from-jmeter-to-influx/26922/4 "2022-11-06T06:46:18Z")

</div>

By the way, I manage to send the data to influxdb hosted on cloud using influxdb-python API with same setting. whereas curl gives another error

 ![python_api](https://us1.discourse-cdn.com/flex023/uploads/influxdata/original/2X/5/5146bd0399ac9631613a8316ecb3296ec7ff3b4d.png)

---

<div class="post-metadata">

### Author: ![Sangeeta\_Agarwal](https://sea1.discourse-cdn.com/flex023/user_avatar/community.influxdata.com/sangeeta_agarwal/32/9845_2.png) [@Sangeeta\_Agarwal](https://community.influxdata.com/u/Sangeeta_Agarwal)
#### Post date: [September 22, 2023, 6:05am UTC](https://community.influxdata.com/t/getting-response-code-400-missing-db-error-while-posting-data-from-jmeter-to-influx/26922/5 "2023-09-22T06:05:21Z")

</div>

my issue is resolved. since I was using docker, I needed to enter url as [http://influxdb:8086](http://influxdb:8086) instead of localhost in backend listener. It worked with this change. Now the issue is data is not going in grafana via influx db. I am getting bucket not found error in grafana. Can anyone help me with same?
