Skip to content

Serde: HTTP 500 when proto files contain Any type #650

@jarasez

Description

@jarasez

Issue submitter TODO list

  • I've looked up my issue in FAQ
  • I've searched for an already existing issues here
  • I've tried running main-labeled docker image and the issue still persists there
  • I'm running a supported version of the application which is listed here

Describe the bug (actual behavior)

I have the following protofiles structure:
protofiles/common/main.proto
protofiles/ref/referenced.proto

main.proto:
`syntax = "proto3";
import "google/protobuf/any.proto";

package common;

message Main {
string name = 1;
google.protobuf.Any payload = 2;
}`

referenced.proto
`syntax = "proto3";
import "google/protobuf/any.proto";

package ref;

message Referenced {
string id = 1;
}`

The setup for the docker image for the serde is:
kafka.clusters.0.serde.0.name: ProtobufFile kafka.clusters.0.serde.0.topicValuesPattern: "test*" kafka.clusters.0.serde.0.PROPERTIES.protobufFilesDir: /protofiles/ kafka.clusters.0.serde.0.properties.protobufMessageName: common.Main

When I try the Produce Message, I get the error that Referenced type is not found.
Screenshot 2024-11-07 at 09 00 49

Expected behavior

What should be the correct way to use proto Any types?

Your installation details

I am using docker image: ghcr.io/kafbat/kafka-ui:latest

Steps to reproduce

proto files and configuration are above

Screenshots

No response

Logs

No response

Additional context

No response

Metadata

Metadata

Assignees

Labels

area/serdeSerialization & Deserialization (plugins)scope/backendRelated to backend changesstatus/triage/completedAutomatic triage completedtype/bugSomething isn't working

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions