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

Produce v3 API returns BAD REQUEST on 7.3.0 #1100

Open
neuromantik33 opened this issue Jan 13, 2023 · 3 comments
Open

Produce v3 API returns BAD REQUEST on 7.3.0 #1100

neuromantik33 opened this issue Jan 13, 2023 · 3 comments

Comments

@neuromantik33
Copy link

When upgrading from 7.2.2 to 7.3.0, when trying to produce avro events using the produce v3 API, I get the following error in the json body:

{
  "error_code": 400,
  "message": "Cannot construct instance of `io.confluent.kafkarest.response.JsonStream` (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)"
}

My content-type is application/json and transfer-encoding chunked.

Falling back to 7.2.2 for now

@PaskeS
Copy link

PaskeS commented Jan 23, 2023

Can confirm seeing this as well producing JSON events on 7.3.0

@PaskeS
Copy link

PaskeS commented Jan 25, 2023

Just for info @neuromantik33 if you are still having the issue. We found that there was a default charset being applied from my http client (C#). Once this was removed it just started working. Why it results in the error above, I have no idea

@zhaojunyuan
Copy link

zhaojunyuan commented Jun 7, 2023

I face the same issue, who can help with it, thanks!
my data like this: {"partition_id":0,"value":{"type":"JSON","data":{"id":11,"name":"zzs","age":23}},"timestamp":"Jun 7, 2023 5:04:37 PM"}
response is: {"error_code":400,"message":"Cannot construct instance of JsonStream (no Creators, like default constructor, exist): cannot deserialize from Object value (no delegate- or property-based Creator)"}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants