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

Crash When Internet connection is not available #1

Open
ghost opened this issue Feb 14, 2019 · 0 comments
Open

Crash When Internet connection is not available #1

ghost opened this issue Feb 14, 2019 · 0 comments

Comments

@ghost
Copy link

ghost commented Feb 14, 2019

When internet connection is not available on the server.

/Users/retnan/vms/node/mem/mem/node_modules/ebulksms/src/utils/sendsms.js:30
            if (response.body.response.status === 'SUCCESS') {
                              ^

TypeError: Cannot read property 'response' of undefined
    at unirest.post.headers.send.send.end.response (/Users/retnan/vms/node/mem/mem/node_modules/ebulksms/src/utils/sendsms.js:30:31)
    at Request.handleRequestResponse [as _callback] (/Users/retnan/vms/node/mem/mem/node_modules/unirest/index.js:355:15)
    at self.callback (/Users/retnan/vms/node/mem/mem/node_modules/unirest/node_modules/request/request.js:187:22)
    at emitOne (events.js:116:13)
    at Request.emit (events.js:211:7)
    at Request.onRequestError (/Users/retnan/vms/node/mem/mem/node_modules/unirest/node_modules/request/request.js:813:8)
    at emitOne (events.js:116:13)
    at ClientRequest.emit (events.js:211:7)
    at Socket.socketErrorListener (_http_client.js:387:9)
    at emitOne (events.js:116:13)
    at Socket.emit (events.js:211:7)
    at emitErrorNT (internal/streams/destroy.js:64:8)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickDomainCallback (internal/process/next_tick.js:218:9)
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

0 participants