-
Notifications
You must be signed in to change notification settings - Fork 20
UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory #80
Description
Issue:
Launching Icarus Service.exe on one system and connecting to a shared directory, that is sharing the ED save game directory, and passing on the command line argument of the shared directory is causing the error of "UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch" on each of the .json files that the application is trying to 'watch'.
Web server loads correctly and initial data is populated but data is not updated.
Reproduction:
- Launch Icarus Service.exe while passing on the -s variable at the command line
(PS C:\Program Files (x86)\ICARUS Terminal> ./"icarus service.exe" -s z:)
Full Error:
PS C:\Program Files (x86)\ICARUS Terminal> ./"icarus service.exe" -s z:
ICARUS Terminal Service 0.22.0
Loading save game data from z:\Frontier Developments\Elite Dangerous
Listening on port 3300…
(node:4876) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/Backpack.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(UseICARUS Service --trace-warnings ...to show where the warning was created)
(node:4876) 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:4876) [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:4876) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/Cargo.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:4876) 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)
(node:4876) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/FCMaterials.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:4876) 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: 3)
(node:4876) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/Market.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:4876) 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: 4)
(node:4876) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/ModulesInfo.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:4876) 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: 5)
(node:4876) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/NavRoute.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:4876) 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: 6)
(node:4876) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/Outfitting.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:4876) 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: 7)
(node:4876) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/ShipLocker.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:4876) 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: 8)
(node:4876) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/Shipyard.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:4876) 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: 9)
(node:4876) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/Status.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:4876) 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: 10)
Scanned 38 files
Imported 20286 events
PS C:\Program Files (x86)\ICARUS Terminal> ./"icarus service.exe" -s z:
ICARUS Terminal Service 0.22.0
Loading save game data from z:\Frontier Developments\Elite Dangerous
Listening on port 3300…
(node:6248) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/Backpack.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(UseICARUS Service --trace-warnings ...to show where the warning was created)
(node:6248) 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:6248) [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:6248) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/Cargo.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:6248) 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)
(node:6248) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/FCMaterials.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:6248) 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: 3)
(node:6248) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/Market.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:6248) 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: 4)
(node:6248) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/ModulesInfo.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:6248) 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: 5)
(node:6248) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/NavRoute.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:6248) 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: 6)
(node:6248) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/Outfitting.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:6248) 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: 7)
(node:6248) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/ShipLocker.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:6248) 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: 8)
(node:6248) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/Shipyard.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:6248) 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: 9)
(node:6248) UnhandledPromiseRejectionWarning: Error: EISDIR: illegal operation on a directory, watch 'z:/Frontier Developments/Elite Dangerous/Status.json'
at FSWatcher. (internal/fs/watchers.js:218:26)
at Object.watch (fs.js:1525:34)
at EliteJson.#watchFile (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:69:15)
at watchFiles (C:\Program Files (x86)\ICARUS Terminal\src\service\lib\elite-json.js:46:51)
(node:6248) 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: 10)
Scanned 38 files
Imported 20047 events