Skip to content

[Bug] Pulsar Rest API: Getting a 500 concurrent.ExecutionException: SchemaException: Unable to add schema #24046

Open
@devansh-kalra

Description

@devansh-kalra

Search before asking

  • I searched in the issues and found nothing similar.

Read release policy

  • I understand that unsupported versions don't get bug fixes. I will attempt to reproduce the issue on a supported version of Pulsar client and Pulsar broker.

Version

version 3.0.x

Minimal reproduce step

Trying to use the broker REST endpoint found in the documentation to produce a message

brokerUrl:{8080/8081}/topics/{persistent/non-persistent}/{my-tenant}/{my-namespace}/{my-topic}

What did you expect to see?

successful response with mesagePublishResults

What did you see instead?

"reason": "Fail to publish message:java.util.concurrent.ExecutionException: org.apache.pulsar.broker.service.schema.exceptions.SchemaException: Unable to add schema SchemaData(type=STRING, isDeleted=false, timestamp=1741032909189, user=Rest Producer, data=[], props={__charset=UTF-8}) to topic persistent://tenant/namespace/topic"

Anything else?

There is no schema attached to the topic, so not sure why it would be giving such an error

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

No one assigned

    Labels

    type/bugThe PR fixed a bug or issue reported a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions