botpress / modules

MOVING TO BOTPRESS/BOTPRESS, branch `develop/x`, folder "packages"
GNU Affero General Public License v3.0
23 stars 29 forks source link

UnhandledPromiseRejectionWarning: Unhandled promise rejection error #6

Open kiserbd opened 6 years ago

kiserbd commented 6 years ago

Hi Getting this error


(node:5729) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.```

after use this following code snippet on index.js file

const config = {
    botName: '<<REPLACE>>',
    botAvatarUrl: '<<REPLACE BY URL>>',
    botConvoTitle: '<<REPLACE>>',
    botConvoDescription: "<<REPLACE>>",
    backgroundColor: '#ffffff',
    textColorOnBackground: '#666666',
    foregroundColor: '#000000',
    textColorOnForeground: '#ffffff'
  }

  bp.createShortlink('chat', '/lite', {
    m: 'channel-web',
    v: 'fullscreen',
    options: JSON.stringify({ config: config })
  })