Skip to content
This repository was archived by the owner on Oct 16, 2018. It is now read-only.
This repository was archived by the owner on Oct 16, 2018. It is now read-only.

UnhandledPromiseRejectionWarning: Unhandled promise rejection error #6

@kiserbd

Description

@kiserbd

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions