Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wrong content type header #266

Closed
FedeBev opened this issue Aug 3, 2021 · 0 comments · Fixed by #270
Closed

Wrong content type header #266

FedeBev opened this issue Aug 3, 2021 · 0 comments · Fixed by #270

Comments

@FedeBev
Copy link

FedeBev commented Aug 3, 2021

Steps to reproduce:
List the minimal actions needed to reproduce the behavior.

bucketApi := client.BucketsAPI()
_, err = bucketApi.CreateBucketWithName(ctx, org, bucket, defaultBucketRetentionRule)
if err != nil {
    panic(err)
}

Expected behavior:
Create a bucket

Actual behavior:
panics with the following error: invalid: invalid Content-Type header value

Specifications:

  • Client Version: github.com/influxdata/influxdb-client-go/v2 v2.4.0
  • InfluxDB Version: cloud (btw, how can I get the exact version?)
  • Platform: debian (docker)

Possible cause:

In NewPatchBucketsIDRequestWithBody definition the content-type header is added 2 times

vlastahajek added a commit to bonitoo-io/influxdb-client-go that referenced this issue Aug 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant