{"action":"created","issue":{"url":"https://api.github.com/repos/rjrodger/seneca-mesh/issues/17","repository_url":"https://api.github.com/repos/rjrodger/seneca-mesh","labels_url":"https://api.github.com/repos/rjrodger/seneca-mesh/issues/17/labels{/name}","comments_url":"https://api.github.com/repos/rjrodger/seneca-mesh/issues/17/comments","events_url":"https://api.github.com/repos/rjrodger/seneca-mesh/issues/17/events","html_url":"https://github.com/rjrodger/seneca-mesh/issues/17","id":138157687,"number":17,"title":"error and warning when using the readme example asyncrhonously","user":{"login":"nherment","id":1041426,"avatar_url":"https://avatars.githubusercontent.com/u/1041426?v=3","gravatar_id":"","url":"https://api.github.com/users/nherment","html_url":"https://github.com/nherment","followers_url":"https://api.github.com/users/nherment/followers","following_url":"https://api.github.com/users/nherment/following{/other_user}","gists_url":"https://api.github.com/users/nherment/gists{/gist_id}","starred_url":"https://api.github.com/users/nherment/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nherment/subscriptions","organizations_url":"https://api.github.com/users/nherment/orgs","repos_url":"https://api.github.com/users/nherment/repos","events_url":"https://api.github.com/users/nherment/events{/privacy}","received_events_url":"https://api.github.com/users/nherment/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-03-03T11:55:25Z","updated_at":"2016-07-23T11:13:53Z","closed_at":"2016-07-23T11:13:53Z","body":"The code:\r\n```\r\n\r\nfunction base() {\r\n  require('seneca')().use('mesh',{base:true});\r\n}\r\n\r\n\r\nfunction server() {\r\n  var senecaServer = require('seneca')();\r\n\r\n  senecaServer.use('mesh', { auto:true, pin:'service:fast-service' });\r\n\r\n  senecaServer.add({ service:'fast-service', cmd:'hello' }, function (args, callback) {\r\n    callback(null, { hello: 'world' });\r\n  });\r\n\r\n  senecaServer.listen();\r\n}\r\n\r\nfunction client() {\r\n  var senecaClient = require('seneca')();\r\n\r\n  senecaClient.use('mesh', { auto:true });\r\n\r\n  senecaClient.act({service: 'fast-service', cmd: 'hello'}, function(err, result) {\r\n    console.log('************', err, JSON.stringify(result, null, 2));\r\n  });\r\n}\r\n\r\n\r\nbase();\r\nsetTimeout(function() {\r\n  server();\r\n  setTimeout(function() {\r\n    client();\r\n  }, 1000);\r\n}, 1000);\r\n```\r\n\r\nThe warning and error:\r\n```\r\n2016-03-03T11:51:47.325Z j2wg59u0ojdc/1457005907058/17970/- WARN\tact\t-       \t-\t-\tseneca: No matching action pattern found for { config:    { port: 56317,     model: 'actor',     type: 'web',     host: '0.0.0.0',     path: null,     role: 'transport',     hook: 'listen',     'ungate$': true,     'tx$': 'r5c2s4wvyth8',     'default$': null,     'meta$':       { id: '6p9idoc03oey/r5c2s4wvyth8',        tx: 'r5c2s4wvyth8',        start: 1457005902159,        pattern: 'hook:listen,role:transport,type:web',        action: '(0nlwa)',        entry: true,        chain: [] },     pin: 'role:mesh,base:true' },  role: 'transport',  type: 'balance',  add: 'client' }, and no default result provided (using a default$ property).\tact_not_found\t{args:{ config:    { port: 56317,     model: 'actor',     type: 'web',     host: '0.0.0.0',     path: null,    \tError: seneca: No matching action pattern found for { config:    { port: 56317,     model: 'actor',     type: 'web',     host: '0.0.0.0',     path: null,     role: 'transport',     hook: 'listen',     'ungate$': true,     'tx$': 'r5c2s4wvyth8',     'default$': null,     'meta$':       { id: '6p9idoc03oey/r5c2s4wvyth8',        tx: 'r5c2s4wvyth8',        start: 1457005902159,        pattern: 'hook:listen,role:transport,type:web',        action: '(0nlwa)',        entry: true,        chain: [] },     pin: 'role:mesh,base:true' },  role: 'transport',  type: 'balance',  add: 'client' }, and no default result provided (using a default$ property).\r\n    at Object.errormaker [as error] (/home/nherment/workspace/nearform/seneca-mesh-test/node_modules/eraro/eraro.js:94:15)\r\n    at Object.execute_action [as fn] (/home/nherment/workspace/nearform/seneca-mesh-test/node_modules/seneca/seneca.js:1054:29)\r\n    at Immediate._onImmediate (/home/nherment/workspace/nearform/seneca-mesh-test/node_modules/gate-executor/gate-executor.js:135:14)\r\n    at processImmediate [as _immediateCallback] (timers.js:383:17)\r\n2016-03-03T11:51:47.326Z j2wg59u0ojdc/1457005907058/17970/- ERROR\tact\t-       \tOUT\t\t-\t4\t{config:{port:56317,model:actor,type:web,host:0.0.0.0,path:null,role:transport,hook:listen},role:transport,type\tENTRY\t\t-\tseneca: No matching action pattern found for { config:    { port: 56317,     model: 'actor',     type: 'web',     host: '0.0.0.0',     path: null,     role: 'transport',     hook: 'listen',     'ungate$': true,     'tx$': 'r5c2s4wvyth8',     'default$': null,     'meta$':       { id: '6p9idoc03oey/r5c2s4wvyth8',        tx: 'r5c2s4wvyth8',        start: 1457005902159,        pattern: 'hook:listen,role:transport,type:web',        action: '(0nlwa)',        entry: true,        chain: [] },     pin: 'role:mesh,base:true' },  role: 'transport',  type: 'balance',  add: 'client' }, and no default result provided (using a default$ property).\tact_not_found\t{args:{ config:    { port: 56317,     model: 'actor',     type: 'web',     host: '0.0.0.0',     path: null,    \tError: seneca: No matching action pattern found for { config:    { port: 56317,     model: 'actor',     type: 'web',     host: '0.0.0.0',     path: null,     role: 'transport',     hook: 'listen',     'ungate$': true,     'tx$': 'r5c2s4wvyth8',     'default$': null,     'meta$':       { id: '6p9idoc03oey/r5c2s4wvyth8',        tx: 'r5c2s4wvyth8',        start: 1457005902159,        pattern: 'hook:listen,role:transport,type:web',        action: '(0nlwa)',        entry: true,        chain: [] },     pin: 'role:mesh,base:true' },  role: 'transport',  type: 'balance',  add: 'client' }, and no default result provided (using a default$ property).\r\n    at Object.errormaker [as error] (/home/nherment/workspace/nearform/seneca-mesh-test/node_modules/eraro/eraro.js:94:15)\r\n    at Object.execute_action [as fn] (/home/nherment/workspace/nearform/seneca-mesh-test/node_modules/seneca/seneca.js:1054:29)\r\n    at Immediate._onImmediate (/home/nherment/workspace/nearform/seneca-mesh-test/node_modules/gate-executor/gate-executor.js:135:14)\r\n```\r\n\r\nThe full logs:\r\n```\r\n2016-03-03T11:55:01.379Z rgdjiszwdafm/1457006101362/18028/- INFO\thello\tSeneca/1.3.0/rgdjiszwdafm/1457006101362/18028/-\t\r\n2016-03-03T11:55:01.747Z rgdjiszwdafm/1457006101362/18028/- INFO\tlisten\t{pin:role:mesh,base:true,model:actor}\t\r\n2016-03-03T11:55:02.670Z djsd3vi83wj3/1457006102663/18028/- INFO\thello\tSeneca/1.3.0/djsd3vi83wj3/1457006102663/18028/-\t\r\n2016-03-03T11:55:02.680Z djsd3vi83wj3/1457006102663/18028/- INFO\tlisten\t\t\r\n2016-03-03T11:55:02.714Z djsd3vi83wj3/1457006102663/18028/- INFO\tlisten\t{pin:service:fast-service,model:actor}\t\r\n2016-03-03T11:55:02.728Z rgdjiszwdafm/1457006101362/18028/- INFO\tclient\t{type:balance,pin:null:true,model:null}\t\r\n2016-03-03T11:55:02.730Z rgdjiszwdafm/1457006101362/18028/- INFO\t-\t-\tACT\t2u8eqp2jjrg9/mmiewfp1fb6s\tname:mesh,plugin:define,role:seneca,seq:6,tag:undefined\tplugin\tmesh       \tACT\t0k8japccphpo/l7ed8abr41gh\tadd:client,role:transport,type:balance\tclient\t{type:web,port:10101,host:0.0.0.0,path:null,role:transport,hook:listen,pin:null:true}\t\r\n2016-03-03T11:55:02.928Z djsd3vi83wj3/1457006102663/18028/- INFO\tclient\t{type:balance,pin:role:mesh,base:true,model:actor}\t\r\n2016-03-03T11:55:02.937Z djsd3vi83wj3/1457006102663/18028/- WARN\tact\t-       \t-\t-\tseneca: No matching action pattern found for { config:    { port: 58056,     model: 'actor',     type: 'web',     host: '0.0.0.0',     path: null,     role: 'transport',     hook: 'listen',     'ungate$': true,     'tx$': 'l7ed8abr41gh',     'default$': null,     'meta$':       { id: 'fbvhig010w9q/l7ed8abr41gh',        tx: 'l7ed8abr41gh',        start: 1457006101759,        pattern: 'hook:listen,role:transport,type:web',        action: '(54z42)',        entry: true,        chain: [] },     pin: 'role:mesh,base:true' },  role: 'transport',  type: 'balance',  add: 'client' }, and no default result provided (using a default$ property).\tact_not_found\t{args:{ config:    { port: 58056,     model: 'actor',     type: 'web',     host: '0.0.0.0',     path: null,    \tError: seneca: No matching action pattern found for { config:    { port: 58056,     model: 'actor',     type: 'web',     host: '0.0.0.0',     path: null,     role: 'transport',     hook: 'listen',     'ungate$': true,     'tx$': 'l7ed8abr41gh',     'default$': null,     'meta$':       { id: 'fbvhig010w9q/l7ed8abr41gh',        tx: 'l7ed8abr41gh',        start: 1457006101759,        pattern: 'hook:listen,role:transport,type:web',        action: '(54z42)',        entry: true,        chain: [] },     pin: 'role:mesh,base:true' },  role: 'transport',  type: 'balance',  add: 'client' }, and no default result provided (using a default$ property).\r\n    at Object.errormaker [as error] (/home/nherment/workspace/nearform/seneca-mesh-test/node_modules/eraro/eraro.js:94:15)\r\n    at Object.execute_action [as fn] (/home/nherment/workspace/nearform/seneca-mesh-test/node_modules/seneca/seneca.js:1054:29)\r\n    at Immediate._onImmediate (/home/nherment/workspace/nearform/seneca-mesh-test/node_modules/gate-executor/gate-executor.js:135:14)\r\n    at processImmediate [as _immediateCallback] (timers.js:383:17)\r\n2016-03-03T11:55:02.938Z djsd3vi83wj3/1457006102663/18028/- ERROR\tact\t-       \tOUT\t\t-\t8\t{config:{port:58056,model:actor,type:web,host:0.0.0.0,path:null,role:transport,hook:listen},role:transport,type\tENTRY\t\t-\tseneca: No matching action pattern found for { config:    { port: 58056,     model: 'actor',     type: 'web',     host: '0.0.0.0',     path: null,     role: 'transport',     hook: 'listen',     'ungate$': true,     'tx$': 'l7ed8abr41gh',     'default$': null,     'meta$':       { id: 'fbvhig010w9q/l7ed8abr41gh',        tx: 'l7ed8abr41gh',        start: 1457006101759,        pattern: 'hook:listen,role:transport,type:web',        action: '(54z42)',        entry: true,        chain: [] },     pin: 'role:mesh,base:true' },  role: 'transport',  type: 'balance',  add: 'client' }, and no default result provided (using a default$ property).\tact_not_found\t{args:{ config:    { port: 58056,     model: 'actor',     type: 'web',     host: '0.0.0.0',     path: null,    \tError: seneca: No matching action pattern found for { config:    { port: 58056,     model: 'actor',     type: 'web',     host: '0.0.0.0',     path: null,     role: 'transport',     hook: 'listen',     'ungate$': true,     'tx$': 'l7ed8abr41gh',     'default$': null,     'meta$':       { id: 'fbvhig010w9q/l7ed8abr41gh',        tx: 'l7ed8abr41gh',        start: 1457006101759,        pattern: 'hook:listen,role:transport,type:web',        action: '(54z42)',        entry: true,        chain: [] },     pin: 'role:mesh,base:true' },  role: 'transport',  type: 'balance',  add: 'client' }, and no default result provided (using a default$ property).\r\n    at Object.errormaker [as error] (/home/nherment/workspace/nearform/seneca-mesh-test/node_modules/eraro/eraro.js:94:15)\r\n    at Object.execute_action [as fn] (/home/nherment/workspace/nearform/seneca-mesh-test/node_modules/seneca/seneca.js:1054:29)\r\n    at Immediate._onImmediate (/home/nherment/workspace/nearform/seneca-mesh-test/node_modules/gate-executor/gate-executor.js:135:14)\r\n    at processImmediate [as _immediateCallback] (timers.js:383:17)\t\r\n2016-03-03T11:55:02.950Z rgdjiszwdafm/1457006101362/18028/- INFO\tclient\t{type:balance,pin:service:fast-service,model:actor}\t\r\n2016-03-03T11:55:02.953Z rgdjiszwdafm/1457006101362/18028/- INFO\t-\t-\tACT\t2u8eqp2jjrg9/mmiewfp1fb6s\tname:mesh,plugin:define,role:seneca,seq:6,tag:undefined\tplugin\tmesh       \tACT\tmrd4z8zo2c6l/l7ed8abr41gh\tadd:client,role:transport,type:balance\tclient\t{port:58096,model:actor,type:web,host:0.0.0.0,path:null,role:transport,hook:listen}\t\r\n2016-03-03T11:55:03.151Z djsd3vi83wj3/1457006102663/18028/- INFO\t-\t-\tACT\tz14yu2t9ty1w/gj76f5nw608z\tname:mesh,plugin:define,role:seneca,seq:6,tag:undefined\tplugin\tmesh       \tACT\t9b0kriv5mq5h/8a3e8dlyyi3r\tadd:client,role:transport,type:balance\tclient\t{port:58056,model:actor,type:web,host:0.0.0.0,path:null,role:transport,hook:listen}\t\r\n2016-03-03T11:55:03.708Z ebm75ky3l8mz/1457006103707/18028/- INFO\thello\tSeneca/1.3.0/ebm75ky3l8mz/1457006103707/18028/-\t\r\n2016-03-03T11:55:03.741Z ebm75ky3l8mz/1457006103707/18028/- INFO\tlisten\t{pin:null,model:actor}\t\r\n2016-03-03T11:55:03.749Z rgdjiszwdafm/1457006101362/18028/- INFO\t-\t-\tACT\t2u8eqp2jjrg9/mmiewfp1fb6s\tname:mesh,plugin:define,role:seneca,seq:6,tag:undefined\tplugin\tmesh       \tACT\t8vg8ir7b1w19/l7ed8abr41gh\tadd:client,role:transport,type:balance\tclient\t{port:50763,model:actor,type:web,host:0.0.0.0,path:null,role:transport,hook:listen}\t\r\n2016-03-03T11:55:03.789Z djsd3vi83wj3/1457006102663/18028/- INFO\tclient\t{type:balance,pin:null:true,model:actor}\t\r\n2016-03-03T11:55:03.790Z djsd3vi83wj3/1457006102663/18028/- INFO\t-\t-\tACT\tz14yu2t9ty1w/gj76f5nw608z\tname:mesh,plugin:define,role:seneca,seq:6,tag:undefined\tplugin\tmesh       \tACT\tznxbm1sbxxe5/0xigd5xrfy6l\tadd:client,role:transport,type:balance\tclient\t{port:50763,model:actor,type:web,host:0.0.0.0,path:null,role:transport,hook:listen}\t\r\n2016-03-03T11:55:03.856Z djsd3vi83wj3/1457006102663/18028/- INFO\t-\t-\tACT\tz14yu2t9ty1w/gj76f5nw608z\tname:mesh,plugin:define,role:seneca,seq:6,tag:undefined\tplugin\tmesh       \tACT\tdskveosphn3e/8a3e8dlyyi3r\tadd:client,role:transport,type:balance\tclient\t{port:50763,model:actor,type:web,host:0.0.0.0,path:null,role:transport,hook:listen}\t\r\n2016-03-03T11:55:03.949Z ebm75ky3l8mz/1457006103707/18028/- INFO\tclient\t{type:balance,pin:null:true,model:null}\t\r\n2016-03-03T11:55:03.950Z ebm75ky3l8mz/1457006103707/18028/- INFO\tclient\t{type:balance,pin:service:fast-service,model:actor}\t\r\n2016-03-03T11:55:03.951Z ebm75ky3l8mz/1457006103707/18028/- INFO\tclient\t{type:balance,pin:role:mesh,base:true,model:actor}\t\r\n2016-03-03T11:55:03.952Z ebm75ky3l8mz/1457006103707/18028/- INFO\t-\t-\tACT\tda1p89kvd83s/4k2r3u45qacj\tname:mesh,plugin:define,role:seneca,seq:6,tag:undefined\tplugin\tmesh       \tACT\ttnh2xavpd0e8/fnwxwxx48oyr\tadd:client,role:transport,type:balance\tclient\t{type:web,port:10101,host:0.0.0.0,path:null,role:transport,hook:listen,pin:null:true}\t\r\n2016-03-03T11:55:03.953Z ebm75ky3l8mz/1457006103707/18028/- INFO\t-\t-\tACT\tda1p89kvd83s/4k2r3u45qacj\tname:mesh,plugin:define,role:seneca,seq:6,tag:undefined\tplugin\tmesh       \tACT\toe9wumbt347w/fnwxwxx48oyr\tadd:client,role:transport,type:balance\tclient\t{port:58096,model:actor,type:web,host:0.0.0.0,path:null,role:transport,hook:listen}\t\r\n2016-03-03T11:55:03.954Z ebm75ky3l8mz/1457006103707/18028/- INFO\t-\t-\tACT\tda1p89kvd83s/4k2r3u45qacj\tname:mesh,plugin:define,role:seneca,seq:6,tag:undefined\tplugin\tmesh       \tACT\tvzaq4dij74q0/fnwxwxx48oyr\tadd:client,role:transport,type:balance\tclient\t{port:58056,model:actor,type:web,host:0.0.0.0,path:null,role:transport,hook:listen}\t\r\n************ null {\r\n  \"hello\": \"world\"\r\n}\r\n```"},"comment":{"url":"https://api.github.com/repos/rjrodger/seneca-mesh/issues/comments/234712926","html_url":"https://github.com/rjrodger/seneca-mesh/issues/17#issuecomment-234712926","issue_url":"https://api.github.com/repos/rjrodger/seneca-mesh/issues/17","id":234712926,"user":{"login":"rjrodger","id":138608,"avatar_url":"https://avatars.githubusercontent.com/u/138608?v=3","gravatar_id":"","url":"https://api.github.com/users/rjrodger","html_url":"https://github.com/rjrodger","followers_url":"https://api.github.com/users/rjrodger/followers","following_url":"https://api.github.com/users/rjrodger/following{/other_user}","gists_url":"https://api.github.com/users/rjrodger/gists{/gist_id}","starred_url":"https://api.github.com/users/rjrodger/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rjrodger/subscriptions","organizations_url":"https://api.github.com/users/rjrodger/orgs","repos_url":"https://api.github.com/users/rjrodger/repos","events_url":"https://api.github.com/users/rjrodger/events{/privacy}","received_events_url":"https://api.github.com/users/rjrodger/received_events","type":"User","site_admin":false},"created_at":"2016-07-23T11:13:53Z","updated_at":"2016-07-23T11:13:53Z","body":"mesh now uses plugin init functions, so seneca.ready should solve this"}}
{"actor":{"display_login":"rjrodger"}}