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

mesh does not work #90

Open
nick121212 opened this issue Jul 19, 2017 · 6 comments
Open

mesh does not work #90

nick121212 opened this issue Jul 19, 2017 · 6 comments

Comments

@nick121212
Copy link

err: CL MISSING { color: 'red', format: 'hex' }

@karlpokus
Copy link

karlpokus commented Jul 21, 2017

Same here. Additionally the quick example in the readme is not consistent with the example "05-readme"

// this part is omitted in the readme
.listen(9001)

If I remove the part above the service seems to work but the client complains w msg: 'seneca: No matching action pattern found for { format: \'hex\', color: \'red\' }, and no default result provided (using a default$ property).',

@vforv
Copy link

vforv commented Jul 27, 2017

Same error here:
CL MISSING { format: 'hex', color: 'red' }

@timoweiss
Copy link

Seems to be a problem with the seneca@3.4.X release. seneca@3.3.X works.

@sirudog
Copy link

sirudog commented Aug 7, 2017

I had the same issue with color-client.js in examples/30-multicast-discovery folder. Then I noticed that the latest version (0.10.0) published to NPM is quite old ( March 7), so I tried the master branch, but I still got the same error. Then I checked the api-service.js in examples/30-multicast-discovery folder, and it worked, although the code block which sends the message looked very similar to the one in color-client.js. There was one outstanding difference: in color-client.js there was no seneca.ready(). It turned out that adding this solved the problem. My working color-client.js is:

var Seneca = require('seneca')

Seneca({tag: 'client', log: 'silent'})
  .use('../..')
  .ready(function () {
    this.act(
    {
      role: 'color',
      format: process.argv[2] || 'hex',
      color: process.argv[3] || 'red'
    },
    function (err, out) {
      console.log(err && err.message || out.color)
      this.close()
    })
  })

Using master branch is not a real solution for this problem, but I hope this helps.
@rjrodger is there a plan for shipping a new (or a quickfix) version to NPM?

@bakarydiarra
Copy link

@sirudog, I had the same issue with seneca@3.7.0 and seneca-mesh@0.12.0. I was able to make it work by adding the client act registration in the ready method as you recommended.
I am new to Seneca-mesh and Senecajs in general. I came here after ready @rjrodger book The Tao of Microservices. I believe that the framework could benefit from better/updated documentation. I am ready to help !

@raghuprathap
Copy link

HI I am still getting the same error

seneca: No matching action pattern found for { role: 'color', format: 'hex', color: 'red' }, and no default result provided (using a default$ property)

My node version is 8.12.0

Can you please help me with this.

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

7 participants