-
Notifications
You must be signed in to change notification settings - Fork 4
Description
При сборке на Debian/CentOS выдаются ошибки
Так же при запуске сервиса выдаются ошибки и сервер падает полностью пока не перезагрузишь его.
[root@~]# cd telegramMsg
[root@telegramMsg]# npm start
telegrammsg@1.0.0 start /root/telegramMsg
nodemon ./bin/www
[nodemon] 1.14.12
[nodemon] to restart at any time, enter rs
[nodemon] watching: .
[nodemon] starting node ./bin/www
[nodemon] restarting due to changes...
[nodemon] starting node ./bin/www
[nodemon] restarting due to changes...
[nodemon] starting node ./bin/www
[nodemon] restarting due to changes...
[nodemon] starting node ./bin/www
GET / 200 613.013 ms - 2005
GET /javascripts/blurForm.js 304 4.421 ms - -
GET /images/bg.jpg 304 0.993 ms - -
GET /stylesheets/style.css 200 26.626 ms - -
GET /javascripts/cleanForm.js 304 1.040 ms - -
GET /javascripts/app.js 304 0.903 ms - -
GET /images/symbols.svg 304 0.892 ms - -
GET /fonts/bernier-regular.woff 304 0.828 ms - -
GET /fonts/roboto-medium.woff 304 0.751 ms - -
error: { Error: connect EHOSTUNREACH 149.154.167.220:443
at Object._errnoException (util.js:992:11)
at _exceptionWithHostPort (util.js:1014:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1186:14)
code: 'EHOSTUNREACH',
errno: 'EHOSTUNREACH',
syscall: 'connect',
address: '149.154.167.220',
port: 443 }
statusCode: undefined
body: undefined
/root/telegramMsg/api/telegramMsg.js:19
if(response.statusCode===200){
^
TypeError: Cannot read property 'statusCode' of undefined
at Request._callback (/root/telegramMsg/api/telegramMsg.js:19:17)
at self.callback (/root/telegramMsg/node_modules/request/request.js:186:22)
at emitOne (events.js:116:13)
at Request.emit (events.js:211:7)
at Request.onRequestError (/root/telegramMsg/node_modules/request/request.js:878:8)
at emitOne (events.js:116:13)
at ClientRequest.emit (events.js:211:7)
at TLSSocket.socketErrorListener (_http_client.js:387:9)
at emitOne (events.js:116:13)
at TLSSocket.emit (events.js:211:7)
[nodemon] app crashed - waiting for file changes before starting...