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

unexpected error decoding rpc.Status when 401 #1348

Closed
shaul75 opened this issue Jul 26, 2022 · 2 comments
Closed

unexpected error decoding rpc.Status when 401 #1348

shaul75 opened this issue Jul 26, 2022 · 2 comments
Labels
bug Something isn't working stale

Comments

@shaul75
Copy link
Contributor

shaul75 commented Jul 26, 2022

Description of the bug
When the OTLP HTTP exporter receives 401 unauthorized from the collector:

E, [2022-07-26T16:48:17.742186 #13635] ERROR -- : OpenTelemetry error: unexpected error decoding rpc.Status in OTLP::Exporter#log_status - Error occurred during parsing

The problem seem to be caused by a feature introduced in #1152

I don't understand why is Google::Rpc::Status being used to parse the response in that log method. There's only the HTTP protocol exporter, not the gRPC one?

@shaul75 shaul75 added the bug Something isn't working label Jul 26, 2022
@fbogsany
Copy link
Contributor

fbogsany commented Aug 4, 2022

The OTLP/HTTP part of the spec unambiguously states

Response body for all HTTP 4xx and HTTP 5xx responses MUST be a Protobuf-encoded Status message that describes the problem.

Originally, this was not implemented correctly in the OTLP collector. This was fixed in open-telemetry/opentelemetry-collector#1788. Are you using an old version of the collector, or a 3rd-party collector?

Copy link
Contributor

👋 This issue has been marked as stale because it has been open with no activity. You can: comment on the issue or remove the stale label to hold stale off for a while, add the keep label to hold stale off permanently, or do nothing. If you do nothing this issue will be closed eventually by the stale bot.

@github-actions github-actions bot added the stale label Mar 11, 2024
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Apr 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working stale
Projects
None yet
Development

No branches or pull requests

2 participants