Closed hanymorcos closed 3 years ago
I changed the bytes returned to ascii. It's returning Json. Why is AWS returning JSON from Kinesis? I gave it bytes.
I see that Kinesis returns JSON by default but it does take serialized Object as input. Localstack returns and takes serialized object which is creating a testing night mare.
Hi @hanymorcos, I just wrote this PR (localstack/localstack#3978) that deals with JSON and CBOR serialization for Kinesis for another issue. Could you try it and see if it fix your problem? Thanks.
I'm trying to write object as bytes to Kinesis streams, but I'm getting errors. I wrote a class using Java Generic and sending objects as Array of Bytes.
To convert ByteBuffer back to object. It's erroring here:
What's really strange is that code works in Junit using Localstack? But it doesn't work on the real AWS kinesis.