modules icon indicating copy to clipboard operation
modules copied to clipboard

UnhandledPromiseRejectionWarning: Unhandled promise rejection error

Open kiserbd opened this issue 7 years ago • 0 comments

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 })
  })

kiserbd avatar Mar 20 '18 17:03 kiserbd