You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi all. There is an issue that prevents me from handling an error case.
Reproduction steps:
Obtain a .zip file, that doesn't actually contain any shapefiles.
Use ogr2ogr(pathToZipFile).exec((error, data) =>{ ... } to read said zip file.
The following error is produced and uncaught.
TypeError: Path must be a string. Received undefined
at assertPath (path.js:7:11)
at Object.dirname (path.js:1324:5)
at Object.exports.rmParentDir (/home/totalpave/tp-server/node_modules/ogr2ogr/lib/util.js:21:57)
at EventEmitter.Ogr2ogr._clean (/home/totalpave/tp-server/node_modules/ogr2ogr/index.js:231:10)
at wrapUp (/home/totalpave/tp-server/node_modules/ogr2ogr/index.js:203:22)
at /home/totalpave/tp-server/node_modules/ogr2ogr/index.js:156:20
at /home/totalpave/tp-server/node_modules/ogr2ogr/lib/util.js:56:5
at EventEmitter.<anonymous> (/home/totalpave/tp-server/node_modules/ogr2ogr/lib/zip.js:34:24)
at emitNone (events.js:86:13)
at EventEmitter.emit (events.js:185:7)
at finish (/home/totalpave/tp-server/node_modules/ogr2ogr/node_modules/findit/index.js:107:17)
at check (/home/totalpave/tp-server/node_modules/ogr2ogr/node_modules/findit/index.js:103:37)
at onstat (/home/totalpave/tp-server/node_modules/ogr2ogr/node_modules/findit/index.js:184:13)
at /home/totalpave/tp-server/node_modules/ogr2ogr/node_modules/findit/index.js:133:22
at FSReqWrap.oncomplete (fs.js:123:15)
Other relevant information:
NodeJS Version 6.10.0 / NPM version 3.10.10
ogr2ogr GDAL 1.10.1, released 2013/08/26
og2ogr (node module) version 1.0.0
OS: Ubuntu 14.04
The callback to the .exec method is invoked, with a "No valid files found" error, as expected, but the NodeJS process then crashes due to the uncaught exception sometime later in that routine.
The text was updated successfully, but these errors were encountered:
Hi all. There is an issue that prevents me from handling an error case.
Reproduction steps:
ogr2ogr(pathToZipFile).exec((error, data) =>{ ... }
to read said zip file.Other relevant information:
The callback to the .exec method is invoked, with a "No valid files found" error, as expected, but the NodeJS process then crashes due to the uncaught exception sometime later in that routine.
The text was updated successfully, but these errors were encountered: