mokolodi1 / myvisaangel

My Visa Angel chatbot
https://m.me/MyVisaAngel
3 stars 0 forks source link

Server crash Oct 10, 2017 #51

Closed mokolodi1 closed 7 years ago

mokolodi1 commented 7 years ago

Server logs are below.

Tue Oct 10 2017 21:07:22 GMT+0000 (UTC) /v1/nlp { 'last user freeform input': 'j\'ai 2220 euros brut',
  prefecture: 'paris',
  salary: '',
  employmentSituation: '',
  diploma: '',
  familySituation: '',
  currentTDS: '',
  nationality: '',
  selected_tds: 'ptsq',
  'first name': 'Mabeye',
  'messenger user id': '1492281160880071',
  timezone: '2',
  'last name': 'Sylla',
  gender: 'male',
  recommended_tds: '',
  locale: 'fr_FR',
  nlp_disabled: '' }
Recast intent: null
response: {"redirect_to_blocks":["Silent creators respond"]}

Tue Oct 10 2017 21:14:17 GMT+0000 (UTC) /v1/nlp { 'last user freeform input': 'changement de statut',
  prefecture: 'paris',
  salary: '',
  employmentSituation: '',
  diploma: '',
  familySituation: '',
  currentTDS: '',
  nationality: '',
  selected_tds: 'ptsq',
  'first name': 'Mabeye',
  'messenger user id': '1492281160880071',
  timezone: '2',
  'last name': 'Sylla',
  gender: 'male',
  recommended_tds: '',
  locale: 'fr_FR',
  nlp_disabled: 'yes' }
Recast intent: { slug: 'dossier-submission-method', confidence: 0.86 }
response: {"set_attributes":{"nlp_disabled":"yes"}}
/home/ubuntu/myvisaangel/node_modules/google-spreadsheet/index.js:318
      var entries_xml = new_xml.match(/<entry[^>]*>([\s\S]*?)<\/entry>/g);
                               ^

TypeError: Cannot read property 'match' of undefined
    at /home/ubuntu/myvisaangel/node_modules/google-spreadsheet/index.js:318:32
    at Request._callback (/home/ubuntu/myvisaangel/node_modules/google-spreadsheet/index.js:170:18)
    at Request.self.callback (/home/ubuntu/myvisaangel/node_modules/request/request.js:188:22)
    at emitTwo (events.js:125:13)
    at Request.emit (events.js:213:7)
    at Request.<anonymous> (/home/ubuntu/myvisaangel/node_modules/request/request.js:1171:10)
    at emitOne (events.js:115:13)
    at Request.emit (events.js:210:7)
    at IncomingMessage.<anonymous> (/home/ubuntu/myvisaangel/node_modules/request/request.js:1091:12)
    at Object.onceWrapper (events.js:314:30)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! mokolodi1@1.0.0 prod: `PORT=80 /usr/local/n/versions/node/8.4.0/bin/node src/server.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the mokolodi1@1.0.0 prod script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR!     /home/ubuntu/.npm/_logs/2017-10-10T21_14_38_273Z-debug.log
mokolodi1 commented 7 years ago

Totally bizarre. I have literally no idea where this is from.

It seems to be referenced here: https://github.com/theoephraim/node-google-spreadsheet/issues/167

paolagermangarcia commented 7 years ago

@mokolodi1 it happened again! The server is down :(

mokolodi1 commented 7 years ago

This is a recurring problem, but it only happens infrequently and the band-aid is preventing any real crashes.

If it starts happening more, we'll reopen the ticket.