Skip to content
This repository has been archived by the owner on Apr 27, 2020. It is now read-only.

Cannot read property 'error' of undefined #163

Open
sathyajackson opened this issue Dec 19, 2018 · 0 comments
Open

Cannot read property 'error' of undefined #163

sathyajackson opened this issue Dec 19, 2018 · 0 comments

Comments

@sathyajackson
Copy link

While loading a huge bill into the conveyor, the below-mentioned error is getting triggered.
I am not sure if this bad gateway is because of any proxy, as my system is behind a squid proxy server.

conveyor-node_1 | 172.19.0.4: POST /flow/bill/data --> undefined
conveyor-node_1 | TypeError: Cannot read property 'error' of undefined
conveyor-node_1 | at server.on (/usr/src/app/index.js:55:41)
conveyor-node_1 | at Object.internals.handler (/usr/src/app/node_modules/podium/lib/index.js:283:33)
conveyor-node_1 | at invoke (/usr/src/app/node_modules/podium/lib/index.js:255:23)
conveyor-node_1 | at each (/usr/src/app/node_modules/podium/lib/index.js:259:13)
conveyor-node_1 | at Object.exports.parallel (/usr/src/app/node_modules/items/lib/index.js:70:13)
conveyor-node_1 | at Object.internals.emit (/usr/src/app/node_modules/podium/lib/index.js:276:18)
conveyor-node_1 | at module.exports.internals.Server.internals.Podium._emit (/usr/src/app/node_modules/podium/lib/index.js:156:15)
conveyor-node_1 | at each (/usr/src/app/node_modules/podium/lib/index.js:197:47)
conveyor-node_1 | at Object.exports.parallel (/usr/src/app/node_modules/items/lib/index.js:70:13)
conveyor-node_1 | at relay (/usr/src/app/node_modules/podium/lib/index.js:198:15)
conveyor-node_1 | at Object.internals.emit (/usr/src/app/node_modules/podium/lib/index.js:202:16)
conveyor-node_1 | at internals.emitEmitter (/usr/src/app/node_modules/podium/lib/index.js:303:15)
conveyor-node_1 | at process._tickCallback (internal/process/next_tick.js:63:19)

conveyor-node_1 | 172.19.0.4: POST /flow/bill/data --> 502
conveyor-node_1 | { statusCode: 502,
conveyor-node_1 | error: 'Bad Gateway',
conveyor-node_1 | message: 'socket hang up' }
conveyorized-kibana_1 | proxy:uri: "http://api:4000/flow/bill/data"
conveyorized-kibana_1 | {"type":"response","@timestamp":"2018-12-19T14:09:21Z","tags":[],"pid":1,"method":"get","statusCode":404,"req":{"url":"/login","method":"get","headers":{"user-agent":"curl/7.29.0","host":"localhost:5601","accept":"/"},"remoteAddress":"127.0.0.1","userAgent":"127.0.0.1"},"res":{"statusCode":404,"responseTime":19,"contentLength":9},"message":"GET /login 404 19ms - 9.0B"}
conveyorized-kibana_1 | {"type":"error","@timestamp":"2018-12-19T14:09:32Z","tags":["connection","client","error"],"pid":1,"level":"error","error":{"message":"Parse Error","name":"Error","stack":"Error: Parse Error\n at socketOnEnd (_http_server.js:431:20)\n at emitNone (events.js:111:20)\n at Socket.emit (events.js:208:7)\n at endReadableNT (_stream_readable.js:1064:12)\n at _combinedTickCallback (internal/process/next_tick.js:138:11)\n at process._tickDomainCallback (internal/process/next_tick.js:218:9)","code":"HPE_INVALID_EOF_STATE"},"message":"Parse Error"}

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant