The "fd" argument must be of type number. Received type undefined

See original GitHub issue

Fresh 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:closed
  • Created 5 years ago
  • Comments:13 (6 by maintainers)

github_iconTop GitHub Comments

1reaction
jasmainakcommented, Jul 6, 2018

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

0reactions
chrisgorgocommented, Jul 7, 2018

Awesome - thanks for reporting and testing.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found