Skip to content

handle error correctly#2

Open
ziedmahdi wants to merge 1 commit into
kchung:masterfrom
perfectsoft-tunisia:master
Open

handle error correctly#2
ziedmahdi wants to merge 1 commit into
kchung:masterfrom
perfectsoft-tunisia:master

Conversation

@ziedmahdi

Copy link
Copy Markdown

If the FullSlate service is down (for instance ssl certificate has expired) we get an exception that if not caught will terminate the node process.

TypeError: Cannot read property 'body' of undefined
    at /built_app/programs/server/npm/node_modules/fullslate/lib/FullSlate.js:178:18
    at Request.callback (/built_app/programs/server/npm/node_modules/fullslate/node_modules/superagent/lib/node/index.js:687:12)
    at ClientRequest. (/built_app/programs/server/npm/node_modules/fullslate/node_modules/superagent/lib/node/index.js:639:10)
    at emitOne (events.js:115:13)
    at ClientRequest.emit (events.js:210:7)
    at TLSSocket.socketOnEnd (_http_client.js:437:9)
    at emitNone (events.js:110:20)
    at TLSSocket.emit (events.js:207:7)
    at endReadableNT (_stream_readable.js:1059:12)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickDomainCallback (internal/process/next_tick.js:218:9)

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

Successfully merging this pull request may close these issues.

1 participant