You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have narrowed the issue to schemaregistry/serde/protobuf/progobuf.go:521-530:
func (s*Deserializer) DeserializeInto(topicstring, payload []byte, msginterface{}) error {
result, err:=s.deserialize(topic, payload, msg)
// Copy the result into the target since we may have created a clone during transformationsvalue:=reflect.ValueOf(msg)
ifvalue.Kind() ==reflect.Pointer {
rv:=value.Elem()
rv.Set(reflect.ValueOf(result).Elem())
}
returnerr
}
I am getting a schema registry request failed error code: 401: Unauthorized in the err variable when s.GetSchema(topic, payload) is called.
I would expect the err to be returned before value := reflect.ValueOf(msg). Because an error is not returned when running line 527 (rv.Set(reflect.ValueOf(result).Elem())) it results in a panic.
Here is part of the trace...
panic: reflect: call of reflect.Value.Elem on zero Value
goroutine 121 [running]:
reflect.Value.Elem({0x0, 0x0, 0x0})
/.../go/pkg/mod/golang.org/[email protected]/src/reflect/value.go:1262 +0x2fc
github.com/confluentinc/confluent-kafka-go/v2/schemaregistry/serde/protobuf.(*Deserializer).DeserializeInto(0x14000dca050, {0x14000da2e40, 0x38}, {0x140009e8000, 0x1b2, 0x1b2}, {0x10bb9b800, 0x140005f75e0})
/.../go/pkg/mod/github.com/confluentinc/confluent-kafka-go/[email protected]/schemaregistry/serde/protobuf/protobuf.go:527 +0x124
The text was updated successfully, but these errors were encountered:
v.2.8.0
I have narrowed the issue to
schemaregistry/serde/protobuf/progobuf.go:521-530
:I am getting a
schema registry request failed error code: 401: Unauthorized
in theerr
variable whens.GetSchema(topic, payload)
is called.I would expect the err to be returned before
value := reflect.ValueOf(msg)
. Because an error is not returned when running line 527 (rv.Set(reflect.ValueOf(result).Elem())
) it results in a panic.Here is part of the trace...
The text was updated successfully, but these errors were encountered: