Skip to content
New issue

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

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

Already on GitHub? # to your account

Adding Authorization header for HEAD requests #16545

Closed
razvancicu opened this issue Feb 24, 2025 · 1 comment · Fixed by #16546
Closed

Adding Authorization header for HEAD requests #16545

razvancicu opened this issue Feb 24, 2025 · 1 comment · Fixed by #16546
Labels
bug unexpected problem or unintended behavior

Comments

@razvancicu
Copy link

Relevant telegraf.conf

n/a

Logs from Telegraf

telegraf-1  | 2025-02-24T10:54:24Z E! Last-Modified header not found, stopping the watcher for http://<remote-URL-config>

System info

telegraf:1.31

Docker

No response

Steps to reproduce

  1. Create custom app for telegraf config;
  2. Start Telegraf server with the following parameters: --config <remote-URL-config> --config-url-watch-interval 3m --debug

Expected behavior

Send HEAD requests with Authorization: Token <token> on the interval refresh and check if something is modified (Last-Modified header)

Actual behavior

Telegraf won't see the Last-Modified header in the HEAD requests due to missing Authorization: Token <token> header.

Additional info

No response

@razvancicu razvancicu added the bug unexpected problem or unintended behavior label Feb 24, 2025
@srebhan
Copy link
Member

srebhan commented Feb 24, 2025

@razvancicu please test the binary in PR #16546, available as soon as CI finished the tests, and let me know if this fixes the issue!

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
bug unexpected problem or unintended behavior
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants