Giter Site home page Giter Site logo

Illegal string offset 'name' about clankbundle HOT 6 OPEN

jdare avatar jdare commented on August 15, 2024
Illegal string offset 'name'

from clankbundle.

Comments (6)

Merk87 avatar Merk87 commented on August 15, 2024

Any idea about how to fix this error?

I'm getting the exactly same error following the guide.

from clankbundle.

jjsaunier avatar jjsaunier commented on August 15, 2024

It's due to your configuration. The example configuration is wrong.

You need to do something like that :

...
topic:
    - { name: topic_name, service:my_topic_service }

EDIT: After looking more closer, the doc is right, look under topic, see -

    topic:
        -
            name: "acme" #Important! this is the topic namespace used to match to this service!
            service: "acme_hello.topic_sample_service" #The service id.

from clankbundle.

bourvill avatar bourvill commented on August 15, 2024

Same error, i follow the exemple...

from clankbundle.

Merk87 avatar Merk87 commented on August 15, 2024

I don't remember exactly how I fixed it, but with this config, is working:

clank:
    session_handler:   ~
    web_socket_server:
        port: "%clank_port%"        #The port the socket server will listen on
        host: "%clank_host%"   #(optional) The host ip to bind to
    rpc:
        -
            name: "conversation_service" #Important! this is the network namespace used to match calls to this service!
            service: "acme_message.rpc_chat_service" #The service id.
    topic:
        -
            name: "conversation_topic" #Important! this is the network namespace used to match calls to this service!
            service: "acme_message.rpc_topic_service" #The service id. ```

from clankbundle.

bourvill avatar bourvill commented on August 15, 2024

oh god, i haven't copied the "-" for topic.

Strange writing, but it work, sorry

from clankbundle.

Merk87 avatar Merk87 commented on August 15, 2024

@bourvill I thought that was my error too!

from clankbundle.

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.