gbv / jskos-server

Web service to access JSKOS data
https://coli-conc.gbv.de/api/
MIT License
6 stars 4 forks source link

import failed #52

Closed DennisTobola closed 5 years ago

DennisTobola commented 5 years ago

I tried to import with the following error message: ./import.sh

jskos-server@0.3.0 import /home/dt/Dokumente/jskos-server node import.js "-r" "-c"

running in development mode Warning: If you're using jskos-server behind a reverse proxy, it is necessary to add baseUrl to the configuration file! /home/dt/Dokumente/jskos-server/lib/import.js:542 }).finally(() => { ^

TypeError: connect(...).then(...).finally is not a function at clearCollection (/home/dt/Dokumente/jskos-server/lib/import.js:542:13) at Object. (/home/dt/Dokumente/jskos-server/import.js:104:19) at Module._compile (module.js:652:30) at Object.Module._extensions..js (module.js:663:10) at Module.load (module.js:565:32) at tryModuleLoad (module.js:505:12) at Function.Module._load (module.js:497:3) at Function.Module.runMain (module.js:693:10) at startup (bootstrap_node.js:191:16) at bootstrap_node.js:612:3

stefandesu commented 5 years ago

Your Node.js version is too old to support finally for Promises. I wasn't aware that it requires a newer Node.js version, so I replaced it with other compatible code. Please try again. ;)