senecajs / seneca-transport

Seneca micro-services message transport over TCP and HTTP.
MIT License
63 stars 45 forks source link

seneca: Action failed: track.push is not a function #170

Open b00tsy opened 4 years ago

b00tsy commented 4 years ago

I'm having a hard time with code that worked reliably for months suddenly stopped working with the above mentioned error after upgrading seneca (and therefore seneca-transport to 5.0.1).

Downgrading to eg. seneca 3.17.0 which uses seneca-transport 4.0.1 resolves the problem for me.

"payload": {
        "eraro": true,
        "orig": {},
        "code": "act_execute",
        "seneca": true,
        "package": "seneca",
        "msg": "seneca: Action  failed: track.push is not a function.",
        "details": {
          "message": "track.push is not a function",
          "pattern": "",
          "instance": "Seneca/nzfm9q33y6f2/1582908564139/19/3.20.1/-",
          "errmsg": "track.push is not a function",
          "errline": "at module.exports.internals.Utils.internals.Utils.prepare_request (/home/app/ClientEndpoint/node_modules/seneca-transport/lib/transport-utils.js:178:9)",
          "orig$": {},
          "message$": "track.push is not a function",
          "plugin": {}
        },
        "callpoint": "at module.exports.internals.Utils.internals.Utils.prepare_request (/home/app/ClientEndpoint/node_modules/seneca-transport/lib/transport-utils.js:178:9)",
        "message": "seneca: Action  failed: track.push is not a function.",
        "name": "Error"
      }
b00tsy commented 4 years ago

Full error message:

{
  "notice": "seneca: Action  failed: Response Error: 500 Internal Server Error.",
  "code": "act_execute",
  "err": {
    "data": {
      "isResponseError": true,
      "headers": {
        "content-type": "application/json",
        "cache-control": "private, max-age=0, no-cache, no-store",
        "content-length": "781",
        "seneca-id": "sm5i7vot9rn5/6yhwuiod0p6m",
        "seneca-kind": "res",
        "seneca-origin": "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
        "seneca-accept": "nzfm9q33y6f2/1582908564139/19/3.20.1/-",
        "seneca-track": "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
        "seneca-time-client-sent": "0",
        "seneca-time-listen-recv": "0",
        "seneca-time-listen-sent": "0",
        "date": "Fri, 28 Feb 2020 16:49:52 GMT",
        "connection": "close"
      },
      "res": {
        "_readableState": {
          "objectMode": false,
          "highWaterMark": 16384,
          "buffer": {
            "head": null,
            "tail": null,
            "length": 0
          },
          "length": 0,
          "pipes": null,
          "pipesCount": 0,
          "flowing": false,
          "ended": true,
          "endEmitted": true,
          "reading": false,
          "sync": true,
          "needReadable": false,
          "emittedReadable": false,
          "readableListening": false,
          "resumeScheduled": false,
          "paused": false,
          "emitClose": true,
          "destroyed": false,
          "defaultEncoding": "utf8",
          "awaitDrain": 0,
          "readingMore": true,
          "decoder": null,
          "encoding": null
        },
        "readable": false,
        "_events": {},
        "_eventsCount": 2,
        "socket": {
          "connecting": false,
          "_hadError": false,
          "_handle": {
            "reading": true,
            "onconnection": null
          },
          "_parent": null,
          "_host": "clientendpoint",
          "_readableState": {
            "objectMode": false,
            "highWaterMark": 16384,
            "buffer": {
              "head": null,
              "tail": null,
              "length": 0
            },
            "length": 0,
            "pipes": null,
            "pipesCount": 0,
            "flowing": true,
            "ended": false,
            "endEmitted": false,
            "reading": true,
            "sync": false,
            "needReadable": true,
            "emittedReadable": false,
            "readableListening": false,
            "resumeScheduled": false,
            "paused": false,
            "emitClose": false,
            "destroyed": false,
            "defaultEncoding": "utf8",
            "awaitDrain": 0,
            "readingMore": false,
            "decoder": null,
            "encoding": null
          },
          "readable": true,
          "_events": {
            "close": [
              null,
              null
            ]
          },
          "_eventsCount": 7,
          "_writableState": {
            "objectMode": false,
            "highWaterMark": 16384,
            "finalCalled": true,
            "needDrain": false,
            "ending": true,
            "ended": true,
            "finished": false,
            "destroyed": false,
            "decodeStrings": false,
            "defaultEncoding": "utf8",
            "length": 0,
            "writing": false,
            "corked": 0,
            "sync": false,
            "bufferProcessing": false,
            "writecb": null,
            "writelen": 0,
            "bufferedRequest": null,
            "lastBufferedRequest": null,
            "pendingcb": 1,
            "prefinished": false,
            "errorEmitted": false,
            "emitClose": false,
            "bufferedRequestCount": 0,
            "corkedRequestsFree": {
              "next": {
                "next": null,
                "entry": null
              },
              "entry": null
            }
          },
          "writable": false,
          "allowHalfOpen": false,
          "_sockname": null,
          "_pendingData": null,
          "_pendingEncoding": "",
          "server": null,
          "_server": null,
          "parser": null,
          "_httpMessage": {
            "_events": {},
            "_eventsCount": 2,
            "output": [],
            "outputEncodings": [],
            "outputCallbacks": [],
            "outputSize": 0,
            "writable": true,
            "_last": true,
            "chunkedEncoding": false,
            "shouldKeepAlive": false,
            "useChunkedEncodingByDefault": true,
            "sendDate": false,
            "_removedConnection": false,
            "_removedContLen": false,
            "_removedTE": false,
            "_contentLength": null,
            "_hasBody": true,
            "_trailer": "",
            "finished": true,
            "_headerSent": true,
            "socket": "[Circular]",
            "connection": "[Circular]",
            "_header": "POST /act HTTP/1.1\r\nAccept: application/json\r\nContent-Type: application/json\r\nseneca-id: sm5i7vot9rn5/6yhwuiod0p6m\r\nseneca-kind: req\r\nseneca-origin: i2x8c7ycaga4/1582908561786/19/3.20.1/-\r\nseneca-track: [\"i2x8c7ycaga4/1582908561786/19/3.20.1/-\"]\r\nseneca-time-client-sent: 1582908592186\r\nhost: clientendpoint:8802\r\ncontent-length: 141\r\nConnection: close\r\n\r\n",
            "agent": {
              "_events": {},
              "_eventsCount": 1,
              "defaultPort": 80,
              "protocol": "http:",
              "options": {
                "maxSockets": null,
                "path": null
              },
              "requests": {},
              "sockets": {
                "clientendpoint:8802:": [
                  "[Circular]"
                ]
              },
              "freeSockets": {},
              "keepAliveMsecs": 1000,
              "keepAlive": false,
              "maxSockets": null,
              "maxFreeSockets": 256
            },
            "method": "POST",
            "path": "/act",
            "_ended": true,
            "res": "[Circular]",
            "timeoutCb": null,
            "upgradeOrConnect": false,
            "parser": null,
            "maxHeadersCount": null
          }
        },
        "connection": {
          "connecting": false,
          "_hadError": false,
          "_handle": {
            "reading": true,
            "onconnection": null
          },
          "_parent": null,
          "_host": "clientendpoint",
          "_readableState": {
            "objectMode": false,
            "highWaterMark": 16384,
            "buffer": {
              "head": null,
              "tail": null,
              "length": 0
            },
            "length": 0,
            "pipes": null,
            "pipesCount": 0,
            "flowing": true,
            "ended": false,
            "endEmitted": false,
            "reading": true,
            "sync": false,
            "needReadable": true,
            "emittedReadable": false,
            "readableListening": false,
            "resumeScheduled": false,
            "paused": false,
            "emitClose": false,
            "destroyed": false,
            "defaultEncoding": "utf8",
            "awaitDrain": 0,
            "readingMore": false,
            "decoder": null,
            "encoding": null
          },
          "readable": true,
          "_events": {
            "close": [
              null,
              null
            ]
          },
          "_eventsCount": 7,
          "_writableState": {
            "objectMode": false,
            "highWaterMark": 16384,
            "finalCalled": true,
            "needDrain": false,
            "ending": true,
            "ended": true,
            "finished": false,
            "destroyed": false,
            "decodeStrings": false,
            "defaultEncoding": "utf8",
            "length": 0,
            "writing": false,
            "corked": 0,
            "sync": false,
            "bufferProcessing": false,
            "writecb": null,
            "writelen": 0,
            "bufferedRequest": null,
            "lastBufferedRequest": null,
            "pendingcb": 1,
            "prefinished": false,
            "errorEmitted": false,
            "emitClose": false,
            "bufferedRequestCount": 0,
            "corkedRequestsFree": {
              "next": {
                "next": null,
                "entry": null
              },
              "entry": null
            }
          },
          "writable": false,
          "allowHalfOpen": false,
          "_sockname": null,
          "_pendingData": null,
          "_pendingEncoding": "",
          "server": null,
          "_server": null,
          "parser": null,
          "_httpMessage": {
            "_events": {},
            "_eventsCount": 2,
            "output": [],
            "outputEncodings": [],
            "outputCallbacks": [],
            "outputSize": 0,
            "writable": true,
            "_last": true,
            "chunkedEncoding": false,
            "shouldKeepAlive": false,
            "useChunkedEncodingByDefault": true,
            "sendDate": false,
            "_removedConnection": false,
            "_removedContLen": false,
            "_removedTE": false,
            "_contentLength": null,
            "_hasBody": true,
            "_trailer": "",
            "finished": true,
            "_headerSent": true,
            "socket": "[Circular]",
            "connection": "[Circular]",
            "_header": "POST /act HTTP/1.1\r\nAccept: application/json\r\nContent-Type: application/json\r\nseneca-id: sm5i7vot9rn5/6yhwuiod0p6m\r\nseneca-kind: req\r\nseneca-origin: i2x8c7ycaga4/1582908561786/19/3.20.1/-\r\nseneca-track: [\"i2x8c7ycaga4/1582908561786/19/3.20.1/-\"]\r\nseneca-time-client-sent: 1582908592186\r\nhost: clientendpoint:8802\r\ncontent-length: 141\r\nConnection: close\r\n\r\n",
            "agent": {
              "_events": {},
              "_eventsCount": 1,
              "defaultPort": 80,
              "protocol": "http:",
              "options": {
                "maxSockets": null,
                "path": null
              },
              "requests": {},
              "sockets": {
                "clientendpoint:8802:": [
                  "[Circular]"
                ]
              },
              "freeSockets": {},
              "keepAliveMsecs": 1000,
              "keepAlive": false,
              "maxSockets": null,
              "maxFreeSockets": 256
            },
            "method": "POST",
            "path": "/act",
            "_ended": true,
            "res": "[Circular]",
            "timeoutCb": null,
            "upgradeOrConnect": false,
            "parser": null,
            "maxHeadersCount": null
          }
        },
        "httpVersionMajor": 1,
        "httpVersionMinor": 1,
        "httpVersion": "1.1",
        "complete": true,
        "headers": {
          "content-type": "application/json",
          "cache-control": "private, max-age=0, no-cache, no-store",
          "content-length": "781",
          "seneca-id": "sm5i7vot9rn5/6yhwuiod0p6m",
          "seneca-kind": "res",
          "seneca-origin": "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
          "seneca-accept": "nzfm9q33y6f2/1582908564139/19/3.20.1/-",
          "seneca-track": "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
          "seneca-time-client-sent": "0",
          "seneca-time-listen-recv": "0",
          "seneca-time-listen-sent": "0",
          "date": "Fri, 28 Feb 2020 16:49:52 GMT",
          "connection": "close"
        },
        "rawHeaders": [
          "Content-Type",
          "application/json",
          "Cache-Control",
          "private, max-age=0, no-cache, no-store",
          "Content-Length",
          "781",
          "seneca-id",
          "sm5i7vot9rn5/6yhwuiod0p6m",
          "seneca-kind",
          "res",
          "seneca-origin",
          "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
          "seneca-accept",
          "nzfm9q33y6f2/1582908564139/19/3.20.1/-",
          "seneca-track",
          "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
          "seneca-time-client-sent",
          "0",
          "seneca-time-listen-recv",
          "0",
          "seneca-time-listen-sent",
          "0",
          "Date",
          "Fri, 28 Feb 2020 16:49:52 GMT",
          "Connection",
          "close"
        ],
        "trailers": {},
        "rawTrailers": [],
        "aborted": false,
        "upgrade": false,
        "url": "",
        "method": null,
        "statusCode": 500,
        "statusMessage": "Internal Server Error",
        "client": {
          "connecting": false,
          "_hadError": false,
          "_handle": {
            "reading": true,
            "onconnection": null
          },
          "_parent": null,
          "_host": "clientendpoint",
          "_readableState": {
            "objectMode": false,
            "highWaterMark": 16384,
            "buffer": {
              "head": null,
              "tail": null,
              "length": 0
            },
            "length": 0,
            "pipes": null,
            "pipesCount": 0,
            "flowing": true,
            "ended": false,
            "endEmitted": false,
            "reading": true,
            "sync": false,
            "needReadable": true,
            "emittedReadable": false,
            "readableListening": false,
            "resumeScheduled": false,
            "paused": false,
            "emitClose": false,
            "destroyed": false,
            "defaultEncoding": "utf8",
            "awaitDrain": 0,
            "readingMore": false,
            "decoder": null,
            "encoding": null
          },
          "readable": true,
          "_events": {
            "close": [
              null,
              null
            ]
          },
          "_eventsCount": 7,
          "_writableState": {
            "objectMode": false,
            "highWaterMark": 16384,
            "finalCalled": true,
            "needDrain": false,
            "ending": true,
            "ended": true,
            "finished": false,
            "destroyed": false,
            "decodeStrings": false,
            "defaultEncoding": "utf8",
            "length": 0,
            "writing": false,
            "corked": 0,
            "sync": false,
            "bufferProcessing": false,
            "writecb": null,
            "writelen": 0,
            "bufferedRequest": null,
            "lastBufferedRequest": null,
            "pendingcb": 1,
            "prefinished": false,
            "errorEmitted": false,
            "emitClose": false,
            "bufferedRequestCount": 0,
            "corkedRequestsFree": {
              "next": {
                "next": null,
                "entry": null
              },
              "entry": null
            }
          },
          "writable": false,
          "allowHalfOpen": false,
          "_sockname": null,
          "_pendingData": null,
          "_pendingEncoding": "",
          "server": null,
          "_server": null,
          "parser": null,
          "_httpMessage": {
            "_events": {},
            "_eventsCount": 2,
            "output": [],
            "outputEncodings": [],
            "outputCallbacks": [],
            "outputSize": 0,
            "writable": true,
            "_last": true,
            "chunkedEncoding": false,
            "shouldKeepAlive": false,
            "useChunkedEncodingByDefault": true,
            "sendDate": false,
            "_removedConnection": false,
            "_removedContLen": false,
            "_removedTE": false,
            "_contentLength": null,
            "_hasBody": true,
            "_trailer": "",
            "finished": true,
            "_headerSent": true,
            "socket": "[Circular]",
            "connection": "[Circular]",
            "_header": "POST /act HTTP/1.1\r\nAccept: application/json\r\nContent-Type: application/json\r\nseneca-id: sm5i7vot9rn5/6yhwuiod0p6m\r\nseneca-kind: req\r\nseneca-origin: i2x8c7ycaga4/1582908561786/19/3.20.1/-\r\nseneca-track: [\"i2x8c7ycaga4/1582908561786/19/3.20.1/-\"]\r\nseneca-time-client-sent: 1582908592186\r\nhost: clientendpoint:8802\r\ncontent-length: 141\r\nConnection: close\r\n\r\n",
            "agent": {
              "_events": {},
              "_eventsCount": 1,
              "defaultPort": 80,
              "protocol": "http:",
              "options": {
                "maxSockets": null,
                "path": null
              },
              "requests": {},
              "sockets": {
                "clientendpoint:8802:": [
                  "[Circular]"
                ]
              },
              "freeSockets": {},
              "keepAliveMsecs": 1000,
              "keepAlive": false,
              "maxSockets": null,
              "maxFreeSockets": 256
            },
            "method": "POST",
            "path": "/act",
            "_ended": true,
            "res": "[Circular]",
            "timeoutCb": null,
            "upgradeOrConnect": false,
            "parser": null,
            "maxHeadersCount": null
          }
        },
        "_consuming": false,
        "_dumped": false,
        "req": {
          "_events": {},
          "_eventsCount": 2,
          "output": [],
          "outputEncodings": [],
          "outputCallbacks": [],
          "outputSize": 0,
          "writable": true,
          "_last": true,
          "chunkedEncoding": false,
          "shouldKeepAlive": false,
          "useChunkedEncodingByDefault": true,
          "sendDate": false,
          "_removedConnection": false,
          "_removedContLen": false,
          "_removedTE": false,
          "_contentLength": null,
          "_hasBody": true,
          "_trailer": "",
          "finished": true,
          "_headerSent": true,
          "socket": "[Circular]",
          "connection": "[Circular]",
          "_header": "POST /act HTTP/1.1\r\nAccept: application/json\r\nContent-Type: application/json\r\nseneca-id: sm5i7vot9rn5/6yhwuiod0p6m\r\nseneca-kind: req\r\nseneca-origin: i2x8c7ycaga4/1582908561786/19/3.20.1/-\r\nseneca-track: [\"i2x8c7ycaga4/1582908561786/19/3.20.1/-\"]\r\nseneca-time-client-sent: 1582908592186\r\nhost: clientendpoint:8802\r\ncontent-length: 141\r\nConnection: close\r\n\r\n",
          "agent": {
            "_events": {},
            "_eventsCount": 1,
            "defaultPort": 80,
            "protocol": "http:",
            "options": {
              "maxSockets": null,
              "path": null
            },
            "requests": {},
            "sockets": {
              "clientendpoint:8802:": [
                "[Circular]"
              ]
            },
            "freeSockets": {},
            "keepAliveMsecs": 1000,
            "keepAlive": false,
            "maxSockets": null,
            "maxFreeSockets": 256
          },
          "method": "POST",
          "path": "/act",
          "_ended": true,
          "res": "[Circular]",
          "timeoutCb": null,
          "upgradeOrConnect": false,
          "parser": null,
          "maxHeadersCount": null
        }
      },
      "payload": {
        "eraro": true,
        "orig": {},
        "code": "act_execute",
        "seneca": true,
        "package": "seneca",
        "msg": "seneca: Action  failed: track.push is not a function.",
        "details": {
          "message": "track.push is not a function",
          "pattern": "",
          "instance": "Seneca/nzfm9q33y6f2/1582908564139/19/3.20.1/-",
          "errmsg": "track.push is not a function",
          "errline": "at module.exports.internals.Utils.internals.Utils.prepare_request (/home/app/ClientEndpoint/node_modules/seneca-transport/lib/transport-utils.js:178:9)",
          "orig$": {},
          "message$": "track.push is not a function",
          "plugin": {}
        },
        "callpoint": "at module.exports.internals.Utils.internals.Utils.prepare_request (/home/app/ClientEndpoint/node_modules/seneca-transport/lib/transport-utils.js:178:9)",
        "message": "seneca: Action  failed: track.push is not a function.",
        "name": "Error"
      }
    },
    "isBoom": true,
    "isServer": true,
    "output": {
      "statusCode": 500,
      "payload": {
        "statusCode": 500,
        "error": "Internal Server Error",
        "message": "An internal server error occurred"
      },
      "headers": {}
    },
    "eraro": true,
    "orig": {
      "data": {
        "isResponseError": true,
        "headers": {
          "content-type": "application/json",
          "cache-control": "private, max-age=0, no-cache, no-store",
          "content-length": "781",
          "seneca-id": "sm5i7vot9rn5/6yhwuiod0p6m",
          "seneca-kind": "res",
          "seneca-origin": "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
          "seneca-accept": "nzfm9q33y6f2/1582908564139/19/3.20.1/-",
          "seneca-track": "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
          "seneca-time-client-sent": "0",
          "seneca-time-listen-recv": "0",
          "seneca-time-listen-sent": "0",
          "date": "Fri, 28 Feb 2020 16:49:52 GMT",
          "connection": "close"
        },
        "res": {
          "_readableState": {
            "objectMode": false,
            "highWaterMark": 16384,
            "buffer": {
              "head": null,
              "tail": null,
              "length": 0
            },
            "length": 0,
            "pipes": null,
            "pipesCount": 0,
            "flowing": false,
            "ended": true,
            "endEmitted": true,
            "reading": false,
            "sync": true,
            "needReadable": false,
            "emittedReadable": false,
            "readableListening": false,
            "resumeScheduled": false,
            "paused": false,
            "emitClose": true,
            "destroyed": false,
            "defaultEncoding": "utf8",
            "awaitDrain": 0,
            "readingMore": true,
            "decoder": null,
            "encoding": null
          },
          "readable": false,
          "_events": {},
          "_eventsCount": 2,
          "socket": {
            "connecting": false,
            "_hadError": false,
            "_handle": {
              "reading": true,
              "onconnection": null
            },
            "_parent": null,
            "_host": "clientendpoint",
            "_readableState": {
              "objectMode": false,
              "highWaterMark": 16384,
              "buffer": {
                "head": null,
                "tail": null,
                "length": 0
              },
              "length": 0,
              "pipes": null,
              "pipesCount": 0,
              "flowing": true,
              "ended": false,
              "endEmitted": false,
              "reading": true,
              "sync": false,
              "needReadable": true,
              "emittedReadable": false,
              "readableListening": false,
              "resumeScheduled": false,
              "paused": false,
              "emitClose": false,
              "destroyed": false,
              "defaultEncoding": "utf8",
              "awaitDrain": 0,
              "readingMore": false,
              "decoder": null,
              "encoding": null
            },
            "readable": true,
            "_events": {
              "close": [
                null,
                null
              ]
            },
            "_eventsCount": 7,
            "_writableState": {
              "objectMode": false,
              "highWaterMark": 16384,
              "finalCalled": true,
              "needDrain": false,
              "ending": true,
              "ended": true,
              "finished": false,
              "destroyed": false,
              "decodeStrings": false,
              "defaultEncoding": "utf8",
              "length": 0,
              "writing": false,
              "corked": 0,
              "sync": false,
              "bufferProcessing": false,
              "writecb": null,
              "writelen": 0,
              "bufferedRequest": null,
              "lastBufferedRequest": null,
              "pendingcb": 1,
              "prefinished": false,
              "errorEmitted": false,
              "emitClose": false,
              "bufferedRequestCount": 0,
              "corkedRequestsFree": {
                "next": {
                  "next": null,
                  "entry": null
                },
                "entry": null
              }
            },
            "writable": false,
            "allowHalfOpen": false,
            "_sockname": null,
            "_pendingData": null,
            "_pendingEncoding": "",
            "server": null,
            "_server": null,
            "parser": null,
            "_httpMessage": {
              "_events": {},
              "_eventsCount": 2,
              "output": [],
              "outputEncodings": [],
              "outputCallbacks": [],
              "outputSize": 0,
              "writable": true,
              "_last": true,
              "chunkedEncoding": false,
              "shouldKeepAlive": false,
              "useChunkedEncodingByDefault": true,
              "sendDate": false,
              "_removedConnection": false,
              "_removedContLen": false,
              "_removedTE": false,
              "_contentLength": null,
              "_hasBody": true,
              "_trailer": "",
              "finished": true,
              "_headerSent": true,
              "socket": "[Circular]",
              "connection": "[Circular]",
              "_header": "POST /act HTTP/1.1\r\nAccept: application/json\r\nContent-Type: application/json\r\nseneca-id: sm5i7vot9rn5/6yhwuiod0p6m\r\nseneca-kind: req\r\nseneca-origin: i2x8c7ycaga4/1582908561786/19/3.20.1/-\r\nseneca-track: [\"i2x8c7ycaga4/1582908561786/19/3.20.1/-\"]\r\nseneca-time-client-sent: 1582908592186\r\nhost: clientendpoint:8802\r\ncontent-length: 141\r\nConnection: close\r\n\r\n",
              "agent": {
                "_events": {},
                "_eventsCount": 1,
                "defaultPort": 80,
                "protocol": "http:",
                "options": {
                  "maxSockets": null,
                  "path": null
                },
                "requests": {},
                "sockets": {
                  "clientendpoint:8802:": [
                    "[Circular]"
                  ]
                },
                "freeSockets": {},
                "keepAliveMsecs": 1000,
                "keepAlive": false,
                "maxSockets": null,
                "maxFreeSockets": 256
              },
              "method": "POST",
              "path": "/act",
              "_ended": true,
              "res": "[Circular]",
              "timeoutCb": null,
              "upgradeOrConnect": false,
              "parser": null,
              "maxHeadersCount": null
            }
          },
          "connection": {
            "connecting": false,
            "_hadError": false,
            "_handle": {
              "reading": true,
              "onconnection": null
            },
            "_parent": null,
            "_host": "clientendpoint",
            "_readableState": {
              "objectMode": false,
              "highWaterMark": 16384,
              "buffer": {
                "head": null,
                "tail": null,
                "length": 0
              },
              "length": 0,
              "pipes": null,
              "pipesCount": 0,
              "flowing": true,
              "ended": false,
              "endEmitted": false,
              "reading": true,
              "sync": false,
              "needReadable": true,
              "emittedReadable": false,
              "readableListening": false,
              "resumeScheduled": false,
              "paused": false,
              "emitClose": false,
              "destroyed": false,
              "defaultEncoding": "utf8",
              "awaitDrain": 0,
              "readingMore": false,
              "decoder": null,
              "encoding": null
            },
            "readable": true,
            "_events": {
              "close": [
                null,
                null
              ]
            },
            "_eventsCount": 7,
            "_writableState": {
              "objectMode": false,
              "highWaterMark": 16384,
              "finalCalled": true,
              "needDrain": false,
              "ending": true,
              "ended": true,
              "finished": false,
              "destroyed": false,
              "decodeStrings": false,
              "defaultEncoding": "utf8",
              "length": 0,
              "writing": false,
              "corked": 0,
              "sync": false,
              "bufferProcessing": false,
              "writecb": null,
              "writelen": 0,
              "bufferedRequest": null,
              "lastBufferedRequest": null,
              "pendingcb": 1,
              "prefinished": false,
              "errorEmitted": false,
              "emitClose": false,
              "bufferedRequestCount": 0,
              "corkedRequestsFree": {
                "next": {
                  "next": null,
                  "entry": null
                },
                "entry": null
              }
            },
            "writable": false,
            "allowHalfOpen": false,
            "_sockname": null,
            "_pendingData": null,
            "_pendingEncoding": "",
            "server": null,
            "_server": null,
            "parser": null,
            "_httpMessage": {
              "_events": {},
              "_eventsCount": 2,
              "output": [],
              "outputEncodings": [],
              "outputCallbacks": [],
              "outputSize": 0,
              "writable": true,
              "_last": true,
              "chunkedEncoding": false,
              "shouldKeepAlive": false,
              "useChunkedEncodingByDefault": true,
              "sendDate": false,
              "_removedConnection": false,
              "_removedContLen": false,
              "_removedTE": false,
              "_contentLength": null,
              "_hasBody": true,
              "_trailer": "",
              "finished": true,
              "_headerSent": true,
              "socket": "[Circular]",
              "connection": "[Circular]",
              "_header": "POST /act HTTP/1.1\r\nAccept: application/json\r\nContent-Type: application/json\r\nseneca-id: sm5i7vot9rn5/6yhwuiod0p6m\r\nseneca-kind: req\r\nseneca-origin: i2x8c7ycaga4/1582908561786/19/3.20.1/-\r\nseneca-track: [\"i2x8c7ycaga4/1582908561786/19/3.20.1/-\"]\r\nseneca-time-client-sent: 1582908592186\r\nhost: clientendpoint:8802\r\ncontent-length: 141\r\nConnection: close\r\n\r\n",
              "agent": {
                "_events": {},
                "_eventsCount": 1,
                "defaultPort": 80,
                "protocol": "http:",
                "options": {
                  "maxSockets": null,
                  "path": null
                },
                "requests": {},
                "sockets": {
                  "clientendpoint:8802:": [
                    "[Circular]"
                  ]
                },
                "freeSockets": {},
                "keepAliveMsecs": 1000,
                "keepAlive": false,
                "maxSockets": null,
                "maxFreeSockets": 256
              },
              "method": "POST",
              "path": "/act",
              "_ended": true,
              "res": "[Circular]",
              "timeoutCb": null,
              "upgradeOrConnect": false,
              "parser": null,
              "maxHeadersCount": null
            }
          },
          "httpVersionMajor": 1,
          "httpVersionMinor": 1,
          "httpVersion": "1.1",
          "complete": true,
          "headers": {
            "content-type": "application/json",
            "cache-control": "private, max-age=0, no-cache, no-store",
            "content-length": "781",
            "seneca-id": "sm5i7vot9rn5/6yhwuiod0p6m",
            "seneca-kind": "res",
            "seneca-origin": "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
            "seneca-accept": "nzfm9q33y6f2/1582908564139/19/3.20.1/-",
            "seneca-track": "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
            "seneca-time-client-sent": "0",
            "seneca-time-listen-recv": "0",
            "seneca-time-listen-sent": "0",
            "date": "Fri, 28 Feb 2020 16:49:52 GMT",
            "connection": "close"
          },
          "rawHeaders": [
            "Content-Type",
            "application/json",
            "Cache-Control",
            "private, max-age=0, no-cache, no-store",
            "Content-Length",
            "781",
            "seneca-id",
            "sm5i7vot9rn5/6yhwuiod0p6m",
            "seneca-kind",
            "res",
            "seneca-origin",
            "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
            "seneca-accept",
            "nzfm9q33y6f2/1582908564139/19/3.20.1/-",
            "seneca-track",
            "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
            "seneca-time-client-sent",
            "0",
            "seneca-time-listen-recv",
            "0",
            "seneca-time-listen-sent",
            "0",
            "Date",
            "Fri, 28 Feb 2020 16:49:52 GMT",
            "Connection",
            "close"
          ],
          "trailers": {},
          "rawTrailers": [],
          "aborted": false,
          "upgrade": false,
          "url": "",
          "method": null,
          "statusCode": 500,
          "statusMessage": "Internal Server Error",
          "client": {
            "connecting": false,
            "_hadError": false,
            "_handle": {
              "reading": true,
              "onconnection": null
            },
            "_parent": null,
            "_host": "clientendpoint",
            "_readableState": {
              "objectMode": false,
              "highWaterMark": 16384,
              "buffer": {
                "head": null,
                "tail": null,
                "length": 0
              },
              "length": 0,
              "pipes": null,
              "pipesCount": 0,
              "flowing": true,
              "ended": false,
              "endEmitted": false,
              "reading": true,
              "sync": false,
              "needReadable": true,
              "emittedReadable": false,
              "readableListening": false,
              "resumeScheduled": false,
              "paused": false,
              "emitClose": false,
              "destroyed": false,
              "defaultEncoding": "utf8",
              "awaitDrain": 0,
              "readingMore": false,
              "decoder": null,
              "encoding": null
            },
            "readable": true,
            "_events": {
              "close": [
                null,
                null
              ]
            },
            "_eventsCount": 7,
            "_writableState": {
              "objectMode": false,
              "highWaterMark": 16384,
              "finalCalled": true,
              "needDrain": false,
              "ending": true,
              "ended": true,
              "finished": false,
              "destroyed": false,
              "decodeStrings": false,
              "defaultEncoding": "utf8",
              "length": 0,
              "writing": false,
              "corked": 0,
              "sync": false,
              "bufferProcessing": false,
              "writecb": null,
              "writelen": 0,
              "bufferedRequest": null,
              "lastBufferedRequest": null,
              "pendingcb": 1,
              "prefinished": false,
              "errorEmitted": false,
              "emitClose": false,
              "bufferedRequestCount": 0,
              "corkedRequestsFree": {
                "next": {
                  "next": null,
                  "entry": null
                },
                "entry": null
              }
            },
            "writable": false,
            "allowHalfOpen": false,
            "_sockname": null,
            "_pendingData": null,
            "_pendingEncoding": "",
            "server": null,
            "_server": null,
            "parser": null,
            "_httpMessage": {
              "_events": {},
              "_eventsCount": 2,
              "output": [],
              "outputEncodings": [],
              "outputCallbacks": [],
              "outputSize": 0,
              "writable": true,
              "_last": true,
              "chunkedEncoding": false,
              "shouldKeepAlive": false,
              "useChunkedEncodingByDefault": true,
              "sendDate": false,
              "_removedConnection": false,
              "_removedContLen": false,
              "_removedTE": false,
              "_contentLength": null,
              "_hasBody": true,
              "_trailer": "",
              "finished": true,
              "_headerSent": true,
              "socket": "[Circular]",
              "connection": "[Circular]",
              "_header": "POST /act HTTP/1.1\r\nAccept: application/json\r\nContent-Type: application/json\r\nseneca-id: sm5i7vot9rn5/6yhwuiod0p6m\r\nseneca-kind: req\r\nseneca-origin: i2x8c7ycaga4/1582908561786/19/3.20.1/-\r\nseneca-track: [\"i2x8c7ycaga4/1582908561786/19/3.20.1/-\"]\r\nseneca-time-client-sent: 1582908592186\r\nhost: clientendpoint:8802\r\ncontent-length: 141\r\nConnection: close\r\n\r\n",
              "agent": {
                "_events": {},
                "_eventsCount": 1,
                "defaultPort": 80,
                "protocol": "http:",
                "options": {
                  "maxSockets": null,
                  "path": null
                },
                "requests": {},
                "sockets": {
                  "clientendpoint:8802:": [
                    "[Circular]"
                  ]
                },
                "freeSockets": {},
                "keepAliveMsecs": 1000,
                "keepAlive": false,
                "maxSockets": null,
                "maxFreeSockets": 256
              },
              "method": "POST",
              "path": "/act",
              "_ended": true,
              "res": "[Circular]",
              "timeoutCb": null,
              "upgradeOrConnect": false,
              "parser": null,
              "maxHeadersCount": null
            }
          },
          "_consuming": false,
          "_dumped": false,
          "req": {
            "_events": {},
            "_eventsCount": 2,
            "output": [],
            "outputEncodings": [],
            "outputCallbacks": [],
            "outputSize": 0,
            "writable": true,
            "_last": true,
            "chunkedEncoding": false,
            "shouldKeepAlive": false,
            "useChunkedEncodingByDefault": true,
            "sendDate": false,
            "_removedConnection": false,
            "_removedContLen": false,
            "_removedTE": false,
            "_contentLength": null,
            "_hasBody": true,
            "_trailer": "",
            "finished": true,
            "_headerSent": true,
            "socket": "[Circular]",
            "connection": "[Circular]",
            "_header": "POST /act HTTP/1.1\r\nAccept: application/json\r\nContent-Type: application/json\r\nseneca-id: sm5i7vot9rn5/6yhwuiod0p6m\r\nseneca-kind: req\r\nseneca-origin: i2x8c7ycaga4/1582908561786/19/3.20.1/-\r\nseneca-track: [\"i2x8c7ycaga4/1582908561786/19/3.20.1/-\"]\r\nseneca-time-client-sent: 1582908592186\r\nhost: clientendpoint:8802\r\ncontent-length: 141\r\nConnection: close\r\n\r\n",
            "agent": {
              "_events": {},
              "_eventsCount": 1,
              "defaultPort": 80,
              "protocol": "http:",
              "options": {
                "maxSockets": null,
                "path": null
              },
              "requests": {},
              "sockets": {
                "clientendpoint:8802:": [
                  "[Circular]"
                ]
              },
              "freeSockets": {},
              "keepAliveMsecs": 1000,
              "keepAlive": false,
              "maxSockets": null,
              "maxFreeSockets": 256
            },
            "method": "POST",
            "path": "/act",
            "_ended": true,
            "res": "[Circular]",
            "timeoutCb": null,
            "upgradeOrConnect": false,
            "parser": null,
            "maxHeadersCount": null
          }
        },
        "payload": {
          "eraro": true,
          "orig": {},
          "code": "act_execute",
          "seneca": true,
          "package": "seneca",
          "msg": "seneca: Action  failed: track.push is not a function.",
          "details": {
            "message": "track.push is not a function",
            "pattern": "",
            "instance": "Seneca/nzfm9q33y6f2/1582908564139/19/3.20.1/-",
            "errmsg": "track.push is not a function",
            "errline": "at module.exports.internals.Utils.internals.Utils.prepare_request (/home/app/ClientEndpoint/node_modules/seneca-transport/lib/transport-utils.js:178:9)",
            "orig$": {},
            "message$": "track.push is not a function",
            "plugin": {}
          },
          "callpoint": "at module.exports.internals.Utils.internals.Utils.prepare_request (/home/app/ClientEndpoint/node_modules/seneca-transport/lib/transport-utils.js:178:9)",
          "message": "seneca: Action  failed: track.push is not a function.",
          "name": "Error"
        }
      },
      "isBoom": true,
      "isServer": true,
      "output": {
        "statusCode": 500,
        "payload": {
          "statusCode": 500,
          "error": "Internal Server Error",
          "message": "An internal server error occurred"
        },
        "headers": {}
      }
    },
    "code": "act_execute",
    "seneca": true,
    "package": "seneca",
    "msg": "seneca: Action  failed: Response Error: 500 Internal Server Error.",
    "details": {
      "message": "Response Error: 500 Internal Server Error",
      "pattern": "",
      "instance": "Seneca/i2x8c7ycaga4/1582908561786/19/3.20.1/-",
      "errmsg": "Response Error: 500 Internal Server Error",
      "errline": "at module.exports.internals.Utils.internals.Utils.handle_response (/home/app/RealtimeEndpoint/node_modules/seneca-transport/lib/transport-utils.js:77:11)",
      "orig$": {
        "data": {
          "isResponseError": true,
          "headers": {
            "content-type": "application/json",
            "cache-control": "private, max-age=0, no-cache, no-store",
            "content-length": "781",
            "seneca-id": "sm5i7vot9rn5/6yhwuiod0p6m",
            "seneca-kind": "res",
            "seneca-origin": "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
            "seneca-accept": "nzfm9q33y6f2/1582908564139/19/3.20.1/-",
            "seneca-track": "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
            "seneca-time-client-sent": "0",
            "seneca-time-listen-recv": "0",
            "seneca-time-listen-sent": "0",
            "date": "Fri, 28 Feb 2020 16:49:52 GMT",
            "connection": "close"
          },
          "res": {
            "_readableState": {
              "objectMode": false,
              "highWaterMark": 16384,
              "buffer": {
                "head": null,
                "tail": null,
                "length": 0
              },
              "length": 0,
              "pipes": null,
              "pipesCount": 0,
              "flowing": false,
              "ended": true,
              "endEmitted": true,
              "reading": false,
              "sync": true,
              "needReadable": false,
              "emittedReadable": false,
              "readableListening": false,
              "resumeScheduled": false,
              "paused": false,
              "emitClose": true,
              "destroyed": false,
              "defaultEncoding": "utf8",
              "awaitDrain": 0,
              "readingMore": true,
              "decoder": null,
              "encoding": null
            },
            "readable": false,
            "_events": {},
            "_eventsCount": 2,
            "socket": {
              "connecting": false,
              "_hadError": false,
              "_handle": {
                "reading": true,
                "onconnection": null
              },
              "_parent": null,
              "_host": "clientendpoint",
              "_readableState": {
                "objectMode": false,
                "highWaterMark": 16384,
                "buffer": {
                  "head": null,
                  "tail": null,
                  "length": 0
                },
                "length": 0,
                "pipes": null,
                "pipesCount": 0,
                "flowing": true,
                "ended": false,
                "endEmitted": false,
                "reading": true,
                "sync": false,
                "needReadable": true,
                "emittedReadable": false,
                "readableListening": false,
                "resumeScheduled": false,
                "paused": false,
                "emitClose": false,
                "destroyed": false,
                "defaultEncoding": "utf8",
                "awaitDrain": 0,
                "readingMore": false,
                "decoder": null,
                "encoding": null
              },
              "readable": true,
              "_events": {
                "close": [
                  null,
                  null
                ]
              },
              "_eventsCount": 7,
              "_writableState": {
                "objectMode": false,
                "highWaterMark": 16384,
                "finalCalled": true,
                "needDrain": false,
                "ending": true,
                "ended": true,
                "finished": false,
                "destroyed": false,
                "decodeStrings": false,
                "defaultEncoding": "utf8",
                "length": 0,
                "writing": false,
                "corked": 0,
                "sync": false,
                "bufferProcessing": false,
                "writecb": null,
                "writelen": 0,
                "bufferedRequest": null,
                "lastBufferedRequest": null,
                "pendingcb": 1,
                "prefinished": false,
                "errorEmitted": false,
                "emitClose": false,
                "bufferedRequestCount": 0,
                "corkedRequestsFree": {
                  "next": {
                    "next": null,
                    "entry": null
                  },
                  "entry": null
                }
              },
              "writable": false,
              "allowHalfOpen": false,
              "_sockname": null,
              "_pendingData": null,
              "_pendingEncoding": "",
              "server": null,
              "_server": null,
              "parser": null,
              "_httpMessage": {
                "_events": {},
                "_eventsCount": 2,
                "output": [],
                "outputEncodings": [],
                "outputCallbacks": [],
                "outputSize": 0,
                "writable": true,
                "_last": true,
                "chunkedEncoding": false,
                "shouldKeepAlive": false,
                "useChunkedEncodingByDefault": true,
                "sendDate": false,
                "_removedConnection": false,
                "_removedContLen": false,
                "_removedTE": false,
                "_contentLength": null,
                "_hasBody": true,
                "_trailer": "",
                "finished": true,
                "_headerSent": true,
                "socket": "[Circular]",
                "connection": "[Circular]",
                "_header": "POST /act HTTP/1.1\r\nAccept: application/json\r\nContent-Type: application/json\r\nseneca-id: sm5i7vot9rn5/6yhwuiod0p6m\r\nseneca-kind: req\r\nseneca-origin: i2x8c7ycaga4/1582908561786/19/3.20.1/-\r\nseneca-track: [\"i2x8c7ycaga4/1582908561786/19/3.20.1/-\"]\r\nseneca-time-client-sent: 1582908592186\r\nhost: clientendpoint:8802\r\ncontent-length: 141\r\nConnection: close\r\n\r\n",
                "agent": {
                  "_events": {},
                  "_eventsCount": 1,
                  "defaultPort": 80,
                  "protocol": "http:",
                  "options": {
                    "maxSockets": null,
                    "path": null
                  },
                  "requests": {},
                  "sockets": {
                    "clientendpoint:8802:": [
                      "[Circular]"
                    ]
                  },
                  "freeSockets": {},
                  "keepAliveMsecs": 1000,
                  "keepAlive": false,
                  "maxSockets": null,
                  "maxFreeSockets": 256
                },
                "method": "POST",
                "path": "/act",
                "_ended": true,
                "res": "[Circular]",
                "timeoutCb": null,
                "upgradeOrConnect": false,
                "parser": null,
                "maxHeadersCount": null
              }
            },
            "connection": {
              "connecting": false,
              "_hadError": false,
              "_handle": {
                "reading": true,
                "onconnection": null
              },
              "_parent": null,
              "_host": "clientendpoint",
              "_readableState": {
                "objectMode": false,
                "highWaterMark": 16384,
                "buffer": {
                  "head": null,
                  "tail": null,
                  "length": 0
                },
                "length": 0,
                "pipes": null,
                "pipesCount": 0,
                "flowing": true,
                "ended": false,
                "endEmitted": false,
                "reading": true,
                "sync": false,
                "needReadable": true,
                "emittedReadable": false,
                "readableListening": false,
                "resumeScheduled": false,
                "paused": false,
                "emitClose": false,
                "destroyed": false,
                "defaultEncoding": "utf8",
                "awaitDrain": 0,
                "readingMore": false,
                "decoder": null,
                "encoding": null
              },
              "readable": true,
              "_events": {
                "close": [
                  null,
                  null
                ]
              },
              "_eventsCount": 7,
              "_writableState": {
                "objectMode": false,
                "highWaterMark": 16384,
                "finalCalled": true,
                "needDrain": false,
                "ending": true,
                "ended": true,
                "finished": false,
                "destroyed": false,
                "decodeStrings": false,
                "defaultEncoding": "utf8",
                "length": 0,
                "writing": false,
                "corked": 0,
                "sync": false,
                "bufferProcessing": false,
                "writecb": null,
                "writelen": 0,
                "bufferedRequest": null,
                "lastBufferedRequest": null,
                "pendingcb": 1,
                "prefinished": false,
                "errorEmitted": false,
                "emitClose": false,
                "bufferedRequestCount": 0,
                "corkedRequestsFree": {
                  "next": {
                    "next": null,
                    "entry": null
                  },
                  "entry": null
                }
              },
              "writable": false,
              "allowHalfOpen": false,
              "_sockname": null,
              "_pendingData": null,
              "_pendingEncoding": "",
              "server": null,
              "_server": null,
              "parser": null,
              "_httpMessage": {
                "_events": {},
                "_eventsCount": 2,
                "output": [],
                "outputEncodings": [],
                "outputCallbacks": [],
                "outputSize": 0,
                "writable": true,
                "_last": true,
                "chunkedEncoding": false,
                "shouldKeepAlive": false,
                "useChunkedEncodingByDefault": true,
                "sendDate": false,
                "_removedConnection": false,
                "_removedContLen": false,
                "_removedTE": false,
                "_contentLength": null,
                "_hasBody": true,
                "_trailer": "",
                "finished": true,
                "_headerSent": true,
                "socket": "[Circular]",
                "connection": "[Circular]",
                "_header": "POST /act HTTP/1.1\r\nAccept: application/json\r\nContent-Type: application/json\r\nseneca-id: sm5i7vot9rn5/6yhwuiod0p6m\r\nseneca-kind: req\r\nseneca-origin: i2x8c7ycaga4/1582908561786/19/3.20.1/-\r\nseneca-track: [\"i2x8c7ycaga4/1582908561786/19/3.20.1/-\"]\r\nseneca-time-client-sent: 1582908592186\r\nhost: clientendpoint:8802\r\ncontent-length: 141\r\nConnection: close\r\n\r\n",
                "agent": {
                  "_events": {},
                  "_eventsCount": 1,
                  "defaultPort": 80,
                  "protocol": "http:",
                  "options": {
                    "maxSockets": null,
                    "path": null
                  },
                  "requests": {},
                  "sockets": {
                    "clientendpoint:8802:": [
                      "[Circular]"
                    ]
                  },
                  "freeSockets": {},
                  "keepAliveMsecs": 1000,
                  "keepAlive": false,
                  "maxSockets": null,
                  "maxFreeSockets": 256
                },
                "method": "POST",
                "path": "/act",
                "_ended": true,
                "res": "[Circular]",
                "timeoutCb": null,
                "upgradeOrConnect": false,
                "parser": null,
                "maxHeadersCount": null
              }
            },
            "httpVersionMajor": 1,
            "httpVersionMinor": 1,
            "httpVersion": "1.1",
            "complete": true,
            "headers": {
              "content-type": "application/json",
              "cache-control": "private, max-age=0, no-cache, no-store",
              "content-length": "781",
              "seneca-id": "sm5i7vot9rn5/6yhwuiod0p6m",
              "seneca-kind": "res",
              "seneca-origin": "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
              "seneca-accept": "nzfm9q33y6f2/1582908564139/19/3.20.1/-",
              "seneca-track": "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
              "seneca-time-client-sent": "0",
              "seneca-time-listen-recv": "0",
              "seneca-time-listen-sent": "0",
              "date": "Fri, 28 Feb 2020 16:49:52 GMT",
              "connection": "close"
            },
            "rawHeaders": [
              "Content-Type",
              "application/json",
              "Cache-Control",
              "private, max-age=0, no-cache, no-store",
              "Content-Length",
              "781",
              "seneca-id",
              "sm5i7vot9rn5/6yhwuiod0p6m",
              "seneca-kind",
              "res",
              "seneca-origin",
              "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
              "seneca-accept",
              "nzfm9q33y6f2/1582908564139/19/3.20.1/-",
              "seneca-track",
              "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
              "seneca-time-client-sent",
              "0",
              "seneca-time-listen-recv",
              "0",
              "seneca-time-listen-sent",
              "0",
              "Date",
              "Fri, 28 Feb 2020 16:49:52 GMT",
              "Connection",
              "close"
            ],
            "trailers": {},
            "rawTrailers": [],
            "aborted": false,
            "upgrade": false,
            "url": "",
            "method": null,
            "statusCode": 500,
            "statusMessage": "Internal Server Error",
            "client": {
              "connecting": false,
              "_ha2020-02-28T16:49:52.196611528Z dError": false,
              "_handle": {
                "reading": true,
                "onconnection": null
              },
              "_parent": null,
              "_host": "clientendpoint",
              "_readableState": {
                "objectMode": false,
                "highWaterMark": 16384,
                "buffer": {
                  "head": null,
                  "tail": null,
                  "length": 0
                },
                "length": 0,
                "pipes": null,
                "pipesCount": 0,
                "flowing": true,
                "ended": false,
                "endEmitted": false,
                "reading": true,
                "sync": false,
                "needReadable": true,
                "emittedReadable": false,
                "readableListening": false,
                "resumeScheduled": false,
                "paused": false,
                "emitClose": false,
                "destroyed": false,
                "defaultEncoding": "utf8",
                "awaitDrain": 0,
                "readingMore": false,
                "decoder": null,
                "encoding": null
              },
              "readable": true,
              "_events": {
                "close": [
                  null,
                  null
                ]
              },
              "_eventsCount": 7,
              "_writableState": {
                "objectMode": false,
                "highWaterMark": 16384,
                "finalCalled": true,
                "needDrain": false,
                "ending": true,
                "ended": true,
                "finished": false,
                "destroyed": false,
                "decodeStrings": false,
                "defaultEncoding": "utf8",
                "length": 0,
                "writing": false,
                "corked": 0,
                "sync": false,
                "bufferProcessing": false,
                "writecb": null,
                "writelen": 0,
                "bufferedRequest": null,
                "lastBufferedRequest": null,
                "pendingcb": 1,
                "prefinished": false,
                "errorEmitted": false,
                "emitClose": false,
                "bufferedRequestCount": 0,
                "corkedRequestsFree": {
                  "next": {
                    "next": null,
                    "entry": null
                  },
                  "entry": null
                }
              },
              "writable": false,
              "allowHalfOpen": false,
              "_sockname": null,
              "_pendingData": null,
              "_pendingEncoding": "",
              "server": null,
              "_server": null,
              "parser": null,
              "_httpMessage": {
                "_events": {},
                "_eventsCount": 2,
                "output": [],
                "outputEncodings": [],
                "outputCallbacks": [],
                "outputSize": 0,
                "writable": true,
                "_last": true,
                "chunkedEncoding": false,
                "shouldKeepAlive": false,
                "useChunkedEncodingByDefault": true,
                "sendDate": false,
                "_removedConnection": false,
                "_removedContLen": false,
                "_removedTE": false,
                "_contentLength": null,
                "_hasBody": true,
                "_trailer": "",
                "finished": true,
                "_headerSent": true,
                "socket": "[Circular]",
                "connection": "[Circular]",
                "_header": "POST /act HTTP/1.1\r\nAccept: application/json\r\nContent-Type: application/json\r\nseneca-id: sm5i7vot9rn5/6yhwuiod0p6m\r\nseneca-kind: req\r\nseneca-origin: i2x8c7ycaga4/1582908561786/19/3.20.1/-\r\nseneca-track: [\"i2x8c7ycaga4/1582908561786/19/3.20.1/-\"]\r\nseneca-time-client-sent: 1582908592186\r\nhost: clientendpoint:8802\r\ncontent-length: 141\r\nConnection: close\r\n\r\n",
                "agent": {
                  "_events": {},
                  "_eventsCount": 1,
                  "defaultPort": 80,
                  "protocol": "http:",
                  "options": {
                    "maxSockets": null,
                    "path": null
                  },
                  "requests": {},
                  "sockets": {
                    "clientendpoint:8802:": [
                      "[Circular]"
                    ]
                  },
                  "freeSockets": {},
                  "keepAliveMsecs": 1000,
                  "keepAlive": false,
                  "maxSockets": null,
                  "maxFreeSockets": 256
                },
                "method": "POST",
                "path": "/act",
                "_ended": true,
                "res": "[Circular]",
                "timeoutCb": null,
                "upgradeOrConnect": false,
                "parser": null,
                "maxHeadersCount": null
              }
            },
            "_consuming": false,
            "_dumped": false,
            "req": {
              "_events": {},
              "_eventsCount": 2,
              "output": [],
              "outputEncodings": [],
              "outputCallbacks": [],
              "outputSize": 0,
              "writable": true,
              "_last": true,
              "chunkedEncoding": false,
              "shouldKeepAlive": false,
              "useChunkedEncodingByDefault": true,
              "sendDate": false,
              "_removedConnection": false,
              "_removedContLen": false,
              "_removedTE": false,
              "_contentLength": null,
              "_hasBody": true,
              "_trailer": "",
              "finished": true,
              "_headerSent": true,
              "socket": "[Circular]",
              "connection": "[Circular]",
              "_header": "POST /act HTTP/1.1\r\nAccept: application/json\r\nContent-Type: application/json\r\nseneca-id: sm5i7vot9rn5/6yhwuiod0p6m\r\nseneca-kind: req\r\nseneca-origin: i2x8c7ycaga4/1582908561786/19/3.20.1/-\r\nseneca-track: [\"i2x8c7ycaga4/1582908561786/19/3.20.1/-\"]\r\nseneca-time-client-sent: 1582908592186\r\nhost: clientendpoint:8802\r\ncontent-length: 141\r\nConnection: close\r\n\r\n",
              "agent": {
                "_events": {},
                "_eventsCount": 1,
                "defaultPort": 80,
                "protocol": "http:",
                "options": {
                  "maxSockets": null,
                  "path": null
                },
                "requests": {},
                "sockets": {
                  "clientendpoint:8802:": [
                    "[Circular]"
                  ]
                },
                "freeSockets": {},
                "keepAliveMsecs": 1000,
                "keepAlive": false,
                "maxSockets": null,
                "maxFreeSockets": 256
              },
              "method": "POST",
              "path": "/act",
              "_ended": true,
              "res": "[Circular]",
              "timeoutCb": null,
              "upgradeOrConnect": false,
              "parser": null,
              "maxHeadersCount": null
            }
          },
          "payload": {
            "eraro": true,
            "orig": {},
            "code": "act_execute",
            "seneca": true,
            "package": "seneca",
            "msg": "seneca: Action  failed: track.push is not a function.",
            "details": {
              "message": "track.push is not a function",
              "pattern": "",
              "instance": "Seneca/nzfm9q33y6f2/1582908564139/19/3.20.1/-",
              "errmsg": "track.push is not a function",
              "errline": "at module.exports.internals.Utils.internals.Utils.prepare_request (/home/app/ClientEndpoint/node_modules/seneca-transport/lib/transport-utils.js:178:9)",
              "orig$": {},
              "message$": "track.push is not a function",
              "plugin": {}
            },
            "callpoint": "at module.exports.internals.Utils.internals.Utils.prepare_request (/home/app/ClientEndpoint/node_modules/seneca-transport/lib/transport-utils.js:178:9)",
            "message": "seneca: Action  failed: track.push is not a function.",
            "name": "Error"
          }
        },
        "isBoom": true,
        "isServer": true,
        "output": {
          "statusCode": 500,
          "payload": {
            "statusCode": 500,
            "error": "Internal Server Error",
            "message": "An internal server error occurred"
          },
          "headers": {}
        }
      },
      "message$": "Response Error: 500 Internal Server Error",
      "plugin": {}
    },
    "callpoint": "at module.exports.internals.Utils.internals.Utils.handle_response (/home/app/RealtimeEndpoint/node_modules/seneca-transport/lib/transport-utils.js:77:11)"
  },
  "actid": "sm5i7vot9rn5/6yhwuiod0p6m",
  "msg": {
    "PRIVATE": true
  },
  "meta": {
    "start": 1582908592186,
    "end": 1582908592193,
    "pattern": "",
    "action": "transport_client_9",
    "mi": "sm5i7vot9rn5",
    "tx": "6yhwuiod0p6m",
    "id": "sm5i7vot9rn5/6yhwuiod0p6m",
    "instance": "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
    "tag": "-",
    "seneca": "3.20.1",
    "version": "0.1.0",
    "timeout": 22222,
    "custom": {},
    "plugin": {
      "name": "seneca_internal_client",
      "tag": "-",
      "fullname": "seneca_internal_client"
    },
    "parents": [],
    "remote": false,
    "sync": true,
    "trace": [
      {
        "desc": [
          null,
          "sm5i7vot9rn5/6yhwuiod0p6m",
          null,
          null,
          null,
          null,
          null,
          null,
          null
        ],
        "trace": []
      }
    ],
    "sub": null,
    "data": null,
    "err": null,
    "err_trace": null,
    "error": true,
    "empty": null
  },
  "actdef": {
    "plugin_name": "seneca_internal_client",
    "plugin_tag": "-",
    "plugin_fullname": "seneca_internal_client",
    "raw": {
      "client$": true,
      "strict$": {
        "add": true
      }
    },
    "plugin": {
      "name": "seneca_internal_client",
      "tag": "-",
      "fullname": "seneca_internal_client"
    },
    "sub": false,
    "client": true,
    "fixed": {},
    "custom": {},
    "id": "transport_client_9",
    "name": "transport_client",
    "pattern": "",
    "msgcanon": {},
    "priordef": {
      "plugin_name": "seneca_internal_client",
      "plugin_tag": "-",
      "plugin_fullname": "seneca_internal_client",
      "raw": {
        "client$": true,
        "strict$": {
          "add": true
        }
      },
      "plugin": {
        "name": "seneca_internal_client",
        "tag": "-",
        "fullname": "seneca_internal_client"
      },
      "sub": false,
      "client": true,
      "fixed": {},
      "custom": {},
      "id": "transport_client_8",
      "name": "transport_client",
      "pattern": "",
      "msgcanon": {},
      "priorpath": "",
      "rules": {}
    },
    "priorpath": "transport_client_8;",
    "rules": {}
  },
  "client": true,
  "listen": false,
  "transport": {},
  "kind": "act",
  "case": "ERR",
  "duration": 7,
  "level": 500,
  "isot": "2020-02-28T16:49:52.194Z",
  "when": 1582908592194,
  "level_name": "error",
  "seneca_id": "i2x8c7ycaga4/1582908561786/19/3.20.1/-",
  "seneca_did": "0e8g",
  "plugin_name": "seneca_internal_client",
  "plugin_tag": "-",
  "pattern": "",
  "action": "transport_client_9",
  "idpath": "6yhwu.sm5i7"
}
wzrdtales commented 3 years ago

that is a bug with error handling, which doesn't send back the error, but indeed causes this error and crashes.