File-based bearertokenauth throws an "invalid header field value for Authorization" error. #31458
Unanswered
VedaprakashSubramanian
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The following file-based bearertokenauth throws an "invalid header field value for Authorization" error:
Error message:
"name": "otlphttp", "error": "failed to make an HTTP request: Post \"https://test-otlp-http.cloud.com/v1/logs\":net/http: invalid header field value for \"Authorization\""
The jwt.token file has a single line and no extra space or new line at the end. Sample jwt.token file:
eyJ0eXA.....
If the filename is replaced with "token: eyJ0eXA.....", the collector exports the logs.
How can I fix it to use file?
I'm using the following release for testing:
https://github.com/open-telemetry/opentelemetry-collector-releases/releases/download/v0.94.0/otelcol-contrib_0.94.0_linux_amd64.deb
Beta Was this translation helpful? Give feedback.
All reactions