influxdata / influxdata/influx-cli

Error: failed to xxxxxxxx : 400 Bad Request: unable to decode response content type ""

Open
#337 5 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Go
Stars
75
Forks
22
PR merge metrics
No merged PRs in 30d

Description

**Server:** ec2 instance with Ubuntu 20.04
**Influxdb version:** 2.1.1

Upgraded to Influxdb OSS v2.1.1 from v2.09
Then I installed influx-cli with
`wget https://dl.influxdata.com/influxdb/releases/influxdb2-client-2.2.1-amd64.deb`
`sudo dpkg -i influxdb2-client-2.2.1-amd64.deb`

I have a cli config file: `~/.influxdbv2/configs` :
`[default]`
` url = "http://localhost:8086"`
` token = "xxxxxxx=="`
` org = "XXXXX"`
` active = true`

When I use commands
`influx`
`influx version`
I get proper replies.

However using commands like
`influx bucket list`
`influx dashboards`
`influx ping`
`influx v1 dbrp list`
returns
`Error: failed to xxxxxxxx : 400 Bad Request: unable to decode response content type ""`

.

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the failing influx bucket list, dashboards, ping, and v1 dbrp list commands with the stated InfluxDB 2.1.1 server, CLI 2.2.1, Ubuntu 20.04, and config values. Compare these failures with the successful commands and inspect the CLI request and response handling. Done means the affected commands return their expected results or report a clear, actionable error.

Written by the indexing model from the issue text.

Assessment

Tech stack
go
Domain
cli
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.