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

issue with seneca services calling outside a swarm #172

Open
uover82 opened this issue May 2, 2020 · 0 comments
Open

issue with seneca services calling outside a swarm #172

uover82 opened this issue May 2, 2020 · 0 comments

Comments

@uover82
Copy link

uover82 commented May 2, 2020

Hi,

I'm debugging an issue with a set of seneca services is running inside a docker swarm and calling another seneca (stateful) service ouside the swarm.

The calling service is reporting:
TypeError: track.push is not a function at module.exports.internals.Utils.internals.Utils.prepare_request (/app/node_modules/seneca-transport/lib/transport-utils.js:178:9) at Seneca.action (/app/node_modules/seneca-transport/lib/http.js:144:34) at /app/node_modules/seneca-transport/lib/transport-utils.js:396:14 at /app/node_modules/seneca-transport/lib/transport-utils.js:452:7 at send (/app/node_modules/seneca-transport/lib/http.js:211:7) at /app/node_modules/seneca-transport/lib/transport-utils.js:447:5 at Seneca.send (/app/node_modules/seneca-transport/lib/transport-utils.js:392:7) at Seneca.transport_client (/app/node_modules/seneca/lib/api.js:708:25) at Object.execute_action (/app/node_modules/seneca/lib/act.js:361:17) at Object.act_fn [as fn] (/app/node_modules/seneca/lib/act.js:62:16) at Immediate.processor [as _onImmediate] (/app/node_modules/gate-executor/gate-executor.js:131:14) at processImmediate (internal/timers.js:456:21)

And the calling confguration looks like:
let Seneca = require('seneca') Seneca({tag: 'descriptor', legacy: {meta: true}, timeout: 5000}) .use('zipkin-tracer', {host: 'zipkin', sampling: 1}) .use('statsd', {host: 'stats'}) .use('../descriptor.js') .listen(9000) .client({pin:'role:store', host:'192.168.1.5', port:9075})

The receiving service reports no activity/ events received and otherwise the services seem to communicate fine either inside or outside the swarm.

I'm trying the client configuration option above as it seems the simpliest approach to start with, before exploring other options such as rest/ wreck or redis.

Has anyone else run across this issue or have ideas?

Thanks

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

1 participant