Coder Social home page Coder Social logo

Comments (4)

vineetgoel avatar vineetgoel commented on August 22, 2024

This might be related to the json fix we made earlier. I tried producing strings to this using the kafka-console-producer. Not sure what is going wrong. Could this be because of the value being a bytestring?

from faust.

vineetgoel avatar vineetgoel commented on August 22, 2024

Looks like currently we require that we serialize/deserialize the values and the only supported codec at this point is json. Due to this, when producing messaegs as:

foo
bar

results in the above error.

However if we make these into json serialized strings as follows:

"foo"
"bar"

we get the expected behavior

from faust.

ask avatar ask commented on August 22, 2024

Isn't this fixed by the new:

    greetings_topic = app.topic('greetings', value_type=str, value_serializer='raw')

?

I'm still wondering if value_type=str should imply raw serializer and not json, as it seems
kind of silly to json serialize a string. But maybe that is more DWIM than explicit.

from faust.

vineetgoel avatar vineetgoel commented on August 22, 2024

Yeah I think this should be fixed with the new raw serializer. Maybe we could decode the bytes into str for DWIM purposes? But, should be fine as is

from faust.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.