Skip to content

Instantly share code, notes, and snippets.

@pibi
Created April 27, 2016 13:42
Show Gist options
  • Save pibi/9ba71555191b89157426982ea124333f to your computer and use it in GitHub Desktop.
Save pibi/9ba71555191b89157426982ea124333f to your computer and use it in GitHub Desktop.
c:\Web\senecatest>node api-gateway\api-gateway
2016-04-27T07:07:52.949Z lxb7br8lizf1/1461740872929/6208/- INFO hello Seneca/2
.0.1/lxb7br8lizf1/1461740872929/6208/-
2016-04-27T07:07:53.272Z lxb7br8lizf1/1461740872929/6208/- INFO client {type:am
qp,pin:role:*,cmd:*}
[ API-GW ] loading dw
[ API-GW ] loading pets
[ API-GW ] loading user
2016-04-27T07:08:02.339Z lxb7br8lizf1/1461740872929/6208/- INFO ready to start
Server running at: http://0.0.0.0:3000
[ API-GW: AUTH] token: undefined
[ API-GW: AUTH] token: secret
[ API-GW: user ] request: hello
2016-04-27T07:09:10.141Z lxb7br8lizf1/1461740872929/6208/- ERROR act
client$ OUT cmd:*,role:* 11122 {role:user,cmd:hello,que
ry:{salut:ciao},credentials:{username:john,password:secret,name:John Doe,id:2133
d32a}} ENTRY (9p1wuvh4ej4g) - seneca: Action cmd:*,role:* failed: [TIM
EOUT:3fgyrxu3n7ul/g33gsmr7e3z9:11111<1461740950124-1461740939013:undefined].
act_execute {id:3fgyrxu3n7ul/g33gsmr7e3z9,gate:false,ungate:true,desc:null,t
ime:{start:1461740939013,end:1461740950124},mes Error: [TIMEOUT:3fgyrxu3n7ul/g33
gsmr7e3z9:11111<1461740950124-1461740939013:undefined]
at null._onTimeout (c:\Web\senecatest\node_modules\gate-executor\gate-execut
or.js:112:21)
at tryOnTimeout (timers.js:224:11)
at Timer.listOnTimeout (timers.js:198:5)
2016-04-27T07:09:10.145Z lxb7br8lizf1/1461740872929/6208/- FATAL -
- ACT oqcnukafo33s/g33gsmr7e3z9 name:c:\Web\senecatest\api-gatew
ay\api\user.js,plugin:define,role:seneca,seq:10,tag:undefined plugin c:\Web\s
enecatest\api-gateway\api\user.js sys seneca 2.0.1 lxb7br8lizf1/146
1740872929/6208/- act_execute seneca: Action cmd:*,role:* failed: [TIM
EOUT:3fgyrxu3n7ul/g33gsmr7e3z9:11111<1461740950124-1461740939013:undefined].
{id:3fgyrxu3n7ul/g33gsmr7e3z9,gate:false,ungate:true,desc:null,time:{start:14617
40939013,end:1461740950124},mes all-errors-fatal
2016-04-27T07:09:10.171Z lxb7br8lizf1/1461740872929/6208/- ERROR act
amqp-transport OUT cmd:close,role:seneca 1 {role:seneca,cmd
:close} PRIOR;(m8djavmdnq44) (y1cq0dhtaf5o) - seneca: Action cmd:close
,role:seneca failed: Channel closing. act_execute {id:lsqxoe5top4w/g33gsmr
7e3z9,gate:false,ungate:true,desc:null,time:{start:1461740950167},message:Channe
l closi IllegalOperationError: Channel closing
at Channel.<anonymous> (c:\Web\senecatest\node_modules\seneca-amqp-transport
\node_modules\amqplib\lib\channel.js:149:11)
at Channel.C.closeBecause (c:\Web\senecatest\node_modules\seneca-amqp-transp
ort\node_modules\amqplib\lib\channel.js:201:8)
at Channel.close (c:\Web\senecatest\node_modules\seneca-amqp-transport\node_
modules\amqplib\lib\callback_model.js:91:15)
at Seneca.<anonymous> (c:\Web\senecatest\node_modules\seneca-amqp-transport\
lib\client-hook.js:80:27)
at c:\Web\senecatest\node_modules\seneca\seneca.js:1158:22
at act_param_check (c:\Web\senecatest\node_modules\seneca\seneca.js:1504:17)
at Object.execute_action [as fn] (c:\Web\senecatest\node_modules\seneca\sene
ca.js:1101:7)
at Immediate._onImmediate (c:\Web\senecatest\node_modules\gate-executor\gate
-executor.js:136:14)
at processImmediate [as _immediateCallback] (timers.js:516:17)
2016-04-27T07:09:10.183Z lxb7br8lizf1/1461740872929/6208/- FATAL -
- ACT oqcnukafo33s/g33gsmr7e3z9 name:c:\Web\senecatest\api-gatew
ay\api\user.js,plugin:define,role:seneca,seq:10,tag:undefined plugin c:\Web\s
enecatest\api-gateway\api\user.js sys seneca 2.0.1 lxb7br8lizf1/146
1740872929/6208/- act_execute seneca: Action cmd:close,role:seneca fai
led: Channel closing. {id:lsqxoe5top4w/g33gsmr7e3z9,gate:false,ungate:true,des
c:null,time:{start:1461740950167},message:Channel closi all-errors-fatal
2016-04-27T07:09:21.279Z lxb7br8lizf1/1461740872929/6208/- ERROR act
amqp-transport OUT cmd:close,role:seneca 11114 {role:seneca,cmd
:close} ENTRY (m8djavmdnq44) - seneca: Action cmd:close,role:seneca fai
led: [TIMEOUT:2rlu016ew0ta/g33gsmr7e3z9:11111<1461740961275-1461740950163:undefi
ned]. act_execute {id:2rlu016ew0ta/g33gsmr7e3z9,gate:false,ungate:true,des
c:null,time:{start:1461740950163,end:1461740961275},mes Error: [TIMEOUT:2rlu016e
w0ta/g33gsmr7e3z9:11111<1461740961275-1461740950163:undefined]
at null._onTimeout (c:\Web\senecatest\node_modules\gate-executor\gate-execut
or.js:112:21)
at tryOnTimeout (timers.js:224:11)
at Timer.listOnTimeout (timers.js:198:5)
2016-04-27T07:09:21.295Z lxb7br8lizf1/1461740872929/6208/- FATAL -
- ACT oqcnukafo33s/g33gsmr7e3z9 name:c:\Web\senecatest\api-gatew
ay\api\user.js,plugin:define,role:seneca,seq:10,tag:undefined plugin c:\Web\s
enecatest\api-gateway\api\user.js sys seneca 2.0.1 lxb7br8lizf1/146
1740872929/6208/- act_execute seneca: Action cmd:close,role:seneca fai
led: [TIMEOUT:2rlu016ew0ta/g33gsmr7e3z9:11111<1461740961275-1461740950163:undefi
ned]. {id:2rlu016ew0ta/g33gsmr7e3z9,gate:false,ungate:true,desc:null,time:{sta
rt:1461740950163,end:1461740961275},mes all-errors-fatal
[ API-GW: AUTH] token: secret
2016-04-27T07:10:46.732Z lxb7br8lizf1/1461740872929/6208/- ERROR act
client$ OUT cmd:*,role:* 2 {role:auth,cmd:token,que
ry:{token:secret}} ENTRY (9p1wuvh4ej4g) - seneca: Action cmd:*,rol
e:* failed: Channel closed. act_execute {id:258uokacbak7/emqqef1y0bzd,ga
te:false,ungate:false,desc:null,time:{start:1461741046729},message:Channel clos
IllegalOperationError: Channel closed
at Channel.<anonymous> (c:\Web\senecatest\node_modules\seneca-amqp-transport
\node_modules\amqplib\lib\channel.js:149:11)
at Channel.publish (c:\Web\senecatest\node_modules\seneca-amqp-transport\nod
e_modules\amqplib\lib\callback_model.js:171:17)
at Seneca.<anonymous> (c:\Web\senecatest\node_modules\seneca-amqp-transport\
lib\client-hook.js:76:27)
at c:\Web\senecatest\node_modules\seneca-transport\lib\transport-utils.js:33
6:14
at c:\Web\senecatest\node_modules\seneca-transport\lib\transport-utils.js:37
8:14
at Seneca.client.send (c:\Web\senecatest\node_modules\seneca-transport\lib\t
ransport-utils.js:332:7)
at Seneca.transport_client (c:\Web\senecatest\node_modules\seneca\lib\transp
ort.js:104:25)
at c:\Web\senecatest\node_modules\seneca\seneca.js:1158:22
at act_param_check (c:\Web\senecatest\node_modules\seneca\seneca.js:1504:17)
[ API-GW: AUTH] Error: { [IllegalOperationError: seneca: Action cmd:*,role:* fa
iled: Channel closed.]
stackAtStateChange: 'Stack capture: ConnectionCloseOk received\n at Connect
ion.accept (c:\\Web\\senecatest\\node_modules\\seneca-amqp-transport\\node_modul
es\\amqplib\\lib\\connection.js:377:15)\n at Socket.go (c:\\Web\\senecatest\\
node_modules\\seneca-amqp-transport\\node_modules\\amqplib\\lib\\connection.js:4
76:48)\n at emitNone (events.js:80:13)\n at Socket.emit (events.js:179:7)\
n at emitReadable_ (_stream_readable.js:419:10)\n at emitReadable (_stream
_readable.js:413:7)\n at readableAddChunk (_stream_readable.js:164:13)\n a
t Socket.Readable.push (_stream_readable.js:111:10)\n at TCP.onread (net.js:5
33:20)',
name: 'IllegalOperationError',
eraro: true,
orig:
{ [IllegalOperationError: Channel closed]
stackAtStateChange: 'Stack capture: ConnectionCloseOk received\n at Conn
ection.accept (c:\\Web\\senecatest\\node_modules\\seneca-amqp-transport\\node_mo
dules\\amqplib\\lib\\connection.js:377:15)\n at Socket.go (c:\\Web\\senecates
t\\node_modules\\seneca-amqp-transport\\node_modules\\amqplib\\lib\\connection.j
s:476:48)\n at emitNone (events.js:80:13)\n at Socket.emit (events.js:179:
7)\n at emitReadable_ (_stream_readable.js:419:10)\n at emitReadable (_str
eam_readable.js:413:7)\n at readableAddChunk (_stream_readable.js:164:13)\n
at Socket.Readable.push (_stream_readable.js:111:10)\n at TCP.onread (net.j
s:533:20)',
name: 'IllegalOperationError',
eraro: true,
orig:
{ [IllegalOperationError: Channel closed]
message: 'Channel closed',
stack: 'IllegalOperationError: Channel closed\n at Channel.<anonymous
> (c:\\Web\\senecatest\\node_modules\\seneca-amqp-transport\\node_modules\\amqpl
ib\\lib\\channel.js:149:11)\n at Channel.publish (c:\\Web\\senecatest\\node_m
odules\\seneca-amqp-transport\\node_modules\\amqplib\\lib\\callback_model.js:171
:17)\n at Seneca.<anonymous> (c:\\Web\\senecatest\\node_modules\\seneca-amqp-
transport\\lib\\client-hook.js:76:27)\n at c:\\Web\\senecatest\\node_modules\
\seneca-transport\\lib\\transport-utils.js:336:14\n at c:\\Web\\senecatest\\n
ode_modules\\seneca-transport\\lib\\transport-utils.js:378:14\n at Seneca.cli
ent.send (c:\\Web\\senecatest\\node_modules\\seneca-transport\\lib\\transport-ut
ils.js:332:7)\n at Seneca.transport_client (c:\\Web\\senecatest\\node_modules
\\seneca\\lib\\transport.js:104:25)\n at c:\\Web\\senecatest\\node_modules\\s
eneca\\seneca.js:1158:22\n at act_param_check (c:\\Web\\senecatest\\node_modu
les\\seneca\\seneca.js:1504:17)',
stackAtStateChange: 'Stack capture: ConnectionCloseOk received\n at C
onnection.accept (c:\\Web\\senecatest\\node_modules\\seneca-amqp-transport\\node
_modules\\amqplib\\lib\\connection.js:377:15)\n at Socket.go (c:\\Web\\seneca
test\\node_modules\\seneca-amqp-transport\\node_modules\\amqplib\\lib\\connectio
n.js:476:48)\n at emitNone (events.js:80:13)\n at Socket.emit (events.js:1
79:7)\n at emitReadable_ (_stream_readable.js:419:10)\n at emitReadable (_
stream_readable.js:413:7)\n at readableAddChunk (_stream_readable.js:164:13)\
n at Socket.Readable.push (_stream_readable.js:111:10)\n at TCP.onread (ne
t.js:533:20)' },
code: 'action-execute',
'gate-executor': true,
package: 'gate-executor',
msg: 'gate-executor: Channel closed',
details:
{ id: '258uokacbak7/emqqef1y0bzd',
gate: false,
ungate: false,
desc: undefined,
cb: [Function: act_done],
fn: [Function: execute_action],
time: [Object],
'orig$': [Object],
'message$': 'Channel closed' },
callpoint: 'at Channel.<anonymous> (c:\\Web\\senecatest\\node_modules\\sene
ca-amqp-transport\\node_modules\\amqplib\\lib\\channel.js:149:11)' },
code: 'act_execute',
'gate-executor': true,
package: 'seneca',
msg: 'seneca: Action cmd:*,role:* failed: Channel closed.',
details:
{ id: '258uokacbak7/emqqef1y0bzd',
gate: false,
ungate: false,
desc: undefined,
cb: [Function],
fn: { [Function: transport_client] id: 'pg:cmd:*,role:*,pin:role:*,cmd:*,ty
pe:amqp' },
time: { start: 1461741046729 },
'orig$':
{ [IllegalOperationError: Channel closed]
message: 'Channel closed',
stack: 'IllegalOperationError: Channel closed\n at Channel.<anonymous
> (c:\\Web\\senecatest\\node_modules\\seneca-amqp-transport\\node_modules\\amqpl
ib\\lib\\channel.js:149:11)\n at Channel.publish (c:\\Web\\senecatest\\node_m
odules\\seneca-amqp-transport\\node_modules\\amqplib\\lib\\callback_model.js:171
:17)\n at Seneca.<anonymous> (c:\\Web\\senecatest\\node_modules\\seneca-amqp-
transport\\lib\\client-hook.js:76:27)\n at c:\\Web\\senecatest\\node_modules\
\seneca-transport\\lib\\transport-utils.js:336:14\n at c:\\Web\\senecatest\\n
ode_modules\\seneca-transport\\lib\\transport-utils.js:378:14\n at Seneca.cli
ent.send (c:\\Web\\senecatest\\node_modules\\seneca-transport\\lib\\transport-ut
ils.js:332:7)\n at Seneca.transport_client (c:\\Web\\senecatest\\node_modules
\\seneca\\lib\\transport.js:104:25)\n at c:\\Web\\senecatest\\node_modules\\s
eneca\\seneca.js:1158:22\n at act_param_check (c:\\Web\\senecatest\\node_modu
les\\seneca\\seneca.js:1504:17)',
stackAtStateChange: 'Stack capture: ConnectionCloseOk received\n at C
onnection.accept (c:\\Web\\senecatest\\node_modules\\seneca-amqp-transport\\node
_modules\\amqplib\\lib\\connection.js:377:15)\n at Socket.go (c:\\Web\\seneca
test\\node_modules\\seneca-amqp-transport\\node_modules\\amqplib\\lib\\connectio
n.js:476:48)\n at emitNone (events.js:80:13)\n at Socket.emit (events.js:1
79:7)\n at emitReadable_ (_stream_readable.js:419:10)\n at emitReadable (_
stream_readable.js:413:7)\n at readableAddChunk (_stream_readable.js:164:13)\
n at Socket.Readable.push (_stream_readable.js:111:10)\n at TCP.onread (ne
t.js:533:20)' },
'message$': 'Channel closed',
message: 'Channel closed',
pattern: 'cmd:*,role:*',
instance: 'Seneca/2.0.1/lxb7br8lizf1/1461740872929/6208/-',
plugin: {} },
callpoint: 'at Channel.<anonymous> (c:\\Web\\senecatest\\node_modules\\seneca-
amqp-transport\\node_modules\\amqplib\\lib\\channel.js:149:11)',
seneca: true }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment