Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Invalid tilesource protocol: postgis #89

Open
answerquest opened this issue May 26, 2022 · 0 comments
Open

Invalid tilesource protocol: postgis #89

answerquest opened this issue May 26, 2022 · 0 comments

Comments

@answerquest
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant