Giter Club home page Giter Club logo

Comments (3)

jccardonar avatar jccardonar commented on May 27, 2024 1

This is related to #91 . I agree it does not make sense as a default.
You would need to add your own error handling callback. The default is just to ignore the error.

from nats.py.

captain-sysadmin avatar captain-sysadmin commented on May 27, 2024

I too have bumped into this.
I was trying to create a proof of concept for nc.requests , however I forgot to convert the reply to bytes() like @tolmanam this resulted in silent failures.

my call back was:

     async def help_request(msg):
        subject = msg.subject
        reply = msg.reply
        data = msg.data.decode()
        print("Received a message on '{subject} {reply}': {data}".format(subject=subject, reply=reply, data=data))
        await nc.publish(reply, 'test reply')
        # The above fails silently, 
       

it should throw TypeError: sequence item 8: expected a bytes-like object, str found

from nats.py.

brianshannan avatar brianshannan commented on May 27, 2024

Closed via #170

from nats.py.

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.