PGBI / kong-dashboard

Dashboard for managing Kong gateway
MIT License
2.17k stars 390 forks source link

TypeError: Invalid Version: 1.2.0rc2 #217

Open LanFly opened 5 years ago

LanFly commented 5 years ago

Issue summary

UnhandledPromiseRejectionWarning: TypeError: Invalid Version: 1.2.0rc2

Your environment

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.