Skip to content

TypeError: Invalid Version: 1.2.0rc2 #217

@LanFly

Description

@LanFly

Issue summary

UnhandledPromiseRejectionWarning: TypeError: Invalid Version: 1.2.0rc2

Your environment

  • Kong version = 1.2.0rc2
  • Kong Dashboard version = 3.6.0
  • Node version = 8.10.0
  • Npm version = 5.6.0

Issue description

use the shell to start: kong-dashboard start --kong-url http://localhost:8001 --port 80

Current behavior

TypeError: Invalid Version: 1.2.0rc2

Expected behavior

should start correctly.

Steps to reproduce

kong-dashboard start --kong-url http://localhost:8001 --port 80

Good to have

Connecting to Kong on http://localhost:8001 ...
(node:7927) UnhandledPromiseRejectionWarning: TypeError: Invalid Version: 1.2.0rc2
    at new SemVer (/root/.nvm/versions/node/v8.10.0/lib/node_modules/kong-dashboard/node_modules/semver/semver.js:323:11)
    at compare (/root/.nvm/versions/node/v8.10.0/lib/node_modules/kong-dashboard/node_modules/semver/semver.js:614:10)
    at Function.lt (/root/.nvm/versions/node/v8.10.0/lib/node_modules/kong-dashboard/node_modules/semver/semver.js:648:10)
    at request.get.then.then (/root/.nvm/versions/node/v8.10.0/lib/node_modules/kong-dashboard/bin/kong-dashboard.js:161:16)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
(node:7927) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 1)
(node:7927) [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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions