mirror of
https://github.com/NarrativeScience-old/log.io.git
synced 2026-04-25 09:05:55 +03:00
[GH-ISSUE #238] log.io-file-input dead start #195
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/log.io-NarrativeScience-old#195
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @fency12 on GitHub (May 20, 2020).
Original GitHub issue: https://github.com/NarrativeScience-old/log.io/issues/238
[root@tools01 .log.io]# log.io-file-input
Error: EISDIR: illegal operation on a directory, read
at Object.readSync (fs.js:523:3)
at tryReadSync (fs.js:348:20)
at Object.readFileSync (fs.js:385:19)
at loadConfig (/usr/local/lib/node_modules/log.io-file-input/lib/index.js:28:42)
at _callee$ (/usr/local/lib/node_modules/log.io-file-input/lib/index.js:48:20)
at tryCatch (/usr/local/lib/node_modules/log.io-file-input/node_modules/regenerator-runtime/runtime.js:45:40)
at Generator.invoke [as _invoke] (/usr/local/lib/node_modules/log.io-file-input/node_modules/regenerator-runtime/runtime.js:274:22)
at Generator.prototype. [as next] (/usr/local/lib/node_modules/log.io-file-input/node_modules/regenerator-runtime/runtime.js:97:21)
at asyncGeneratorStep (/usr/local/lib/node_modules/log.io-file-input/node_modules/@babel/runtime/helpers/asyncToGenerator.js:3:24)
at _next (/usr/local/lib/node_modules/log.io-file-input/node_modules/@babel/runtime/helpers/asyncToGenerator.js:25:9) {
errno: -21,
syscall: 'read',
code: 'EISDIR'
}
@msmathers commented on GitHub (May 20, 2020):
Can you copy and paste the contents of
~/.log.io/inputs/file.jsonhere?@fency12 commented on GitHub (May 21, 2020):
~/.log.io/inputs/file.json This configuration is correct;
Later, I deleted the ~/log.io directory and the configuration in /usr/local/lib/node_modules/log.io-file-input/config.json can be started normally;
So far, that's how it works.
thank you
@fency12 commented on GitHub (May 21, 2020):
@msmathers commented on GitHub (May 21, 2020):
The
config.jsprovided with the NPM package contains sample file paths that likely won't work on most machines... I'll make a ticket to remove these and have the file input throw an error if it can't find valid configuration.@fency12 commented on GitHub (May 22, 2020):
thank you , I hope the better.