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

Guzzle default headers are overwritten #157

Open
cocochepeau opened this issue Aug 8, 2024 · 3 comments
Open

Guzzle default headers are overwritten #157

cocochepeau opened this issue Aug 8, 2024 · 3 comments

Comments

@cocochepeau
Copy link

cocochepeau commented Aug 8, 2024

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

  1. Create an influx client with custom httpClient which has some "default" headers set.
  2. Get for example a writeApi instance, and send some points with DEBUG mode enabled.
  3. We dont see the custom added headers being sent to influx when looking at influx client logfile.

Expected behavior:
We should see the custom headers being sent to influx host.
To add some context I have influx API under cloudflare zero trust. I want to use service tokens to allow influx client to connect to and write points to my influx API. AFAIK this is not possible ATM due to this headers issue.

Actual behavior:
Headers are I guess overwritten when calling the "send" request from http client, more details: https://docs.guzzlephp.org/en/7.0/request-options.html?highlight=default%20header#headers

Specifications:

  • Client Version: Guzzle 7
  • InfluxDB Version: latest
  • Platform: linux (debian)
@bednar
Copy link
Contributor

bednar commented Aug 8, 2024

Hi @cocochepeau,

Thank you for using our client! We truly appreciate your engagement and feedback.

We are always looking to improve and would love to see contributions from our user community. Is this something you would be willing to assist with? Whether it's enhancing functionality, fixing bugs, or improving documentation, every Pull Request is welcome.

We would be happy to review your submission and work with you to integrate it into our project. If you need any guidance on how to get started or have any questions about the process, please don't hesitate to ask.

Looking forward to potentially collaborating with you!

Best Regards

@cocochepeau
Copy link
Author

Greetings, I can have a look when I got time (no ETA!).

Best,

@bednar
Copy link
Contributor

bednar commented Aug 12, 2024 via email

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

No branches or pull requests

2 participants