The "fd" argument must be of type number. Received type undefined
See original GitHub issueFresh new install of bids-validator. Checking a dataset mostly in bids format (maybe missing the dataset_description and participants file). Data are converted by someone else, so not sure what exactly is the problem. Here is the error (running as root, so no permission problems). Any idea?
internal/validators.js:113
throw err;
^
TypeError [ERR_INVALID_ARG_TYPE]: The "fd" argument must be of type number. Received type undefined
at Object.read (fs.js:448:3)
at /usr/lib/node_modules/bids-validator/utils/files.js:252:20
at FSReqWrap.oncomplete (fs.js:145:20)
Issue Analytics
- State:
- Created 5 years ago
- Comments:13 (6 by maintainers)
Top Results From Across the Web
require throws error · Issue #1583 · nodejs/help - GitHub
it throws Error TypeError [ERR_INVALID_ARG_TYPE]: The "fd" argument must be of type number. Received type string.
Read more >Write after end error - node.js - Stack Overflow
Error: write after end. You got this error because, you're writing to the response object after it was sent. Ideally, the order should...
Read more >How to write file in Node.js using fs module - DYclassroom
Writing file ERROR: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of...
Read more >[err_invalid_arg_type]: the "path" argument must be of type ...
In Node 15 brfs throw error The "path" argument must be of type string or an instance of Buffer or URL. Received undefined...
Read more >Fs - node - Read the Docs
Synchronous link(2). Returns undefined . fs.symlink(srcpath, dstpath[, type], callback). Asynchronous symlink(2). No arguments ...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
you need to try it on a dataset from BIDS-examples first. If you get the same error, you have an installation problem. Otherwise, we need to dig deeper
Awesome - thanks for reporting and testing.