urbica/tessella

Invalid tilesource protocol: postgis

Opened this issue ยท 0 comments

Trying to start the program with postgis DB like:

tessella --port 5450 "postgis://username:password@localhost:5435/buildings?table=buildings1&geometry_field=shape"

Getting this error:

๐Ÿš€  ON AIR @ :::5450(node:1854708) UnhandledPromiseRejectionWarning: Error: Invalid tilesource protocol: postgis:
    at Object.tilelive.load (/root/building_footprints/test/tessella/node_modules/@mapbox/tilelive/lib/tilelive.js:94:25)
    at Object.tilelive.load (/root/building_footprints/test/tessella/node_modules/tilelive-streaming/index.js:533:12)
    at /root/building_footprints/test/tessella/node_modules/tilelive-cache/index.js:268:23
    at lock (/root/building_footprints/test/tessella/node_modules/locking-cache/index.js:57:16)
    at Object.<anonymous> (/root/building_footprints/test/tessella/node_modules/tilelive-cache/index.js:267:12)
    at Object.load (/root/building_footprints/test/tessella/node_modules/locking-cache/index.js:84:17)
    at /root/building_footprints/test/tessella/src/utils.js:22:21
    at new Promise (<anonymous>)
    at load (/root/building_footprints/test/tessella/src/utils.js:21:5)
    at /root/building_footprints/test/tessella/src/server.js:33:5
(Use `node --trace-warnings ...` to show where the warning was created)
(node:1854708) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:1854708) [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.
(node:1854708) UnhandledPromiseRejectionWarning: Error: Invalid tilesource protocol: postgis:
    at Object.tilelive.load (/root/building_footprints/test/tessella/node_modules/@mapbox/tilelive/lib/tilelive.js:94:25)
    at Object.tilelive.load (/root/building_footprints/test/tessella/node_modules/tilelive-streaming/index.js:533:12)
    at /root/building_footprints/test/tessella/node_modules/tilelive-cache/index.js:268:23
    at lock (/root/building_footprints/test/tessella/node_modules/locking-cache/index.js:57:16)
    at Object.<anonymous> (/root/building_footprints/test/tessella/node_modules/tilelive-cache/index.js:267:12)
    at Object.load (/root/building_footprints/test/tessella/node_modules/locking-cache/index.js:84:17)
    at /root/building_footprints/test/tessella/src/utils.js:22:21
    at new Promise (<anonymous>)
    at load (/root/building_footprints/test/tessella/src/utils.js:21:5)
    at /root/building_footprints/test/tessella/src/server.js:33:5
(node:1854708) 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(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

I've done npm install tessella -g and npm install -g tilelive-postgis successfully already.

Versions:

# node -v
v14.18.3
# npm -v
6.14.17