Skip to content

unable to get VIF in xo-cli@0.32.4 #10531

Closed

Description

@henri9813

Are you using XOA or XO from the sources?

XO from the sources

Which release channel?

None

Provide your commit number

718b3

Describe the bug

I use xo-cli in nodejs:

but i have this:

root@0d4888866043:/app#  xo-cli rest get --output=/tmp/xo_cli_get_resource_5dd61abf-d959-4c62-a8ca-b0786eef4258 vifs/cba827ae-0cb7-8f19-6499-ce47516b6df8
/root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/node_modules/human-format/index.js:290
      throw new TypeError("value must be a number");
      ^

TypeError: value must be a number
    at humanFormat$raw (/root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/node_modules/human-format/index.js:290:13)
    at humanFormat (/root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/node_modules/human-format/index.js:223:16)
    at DestroyableTransform.printProgress (file:///root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/_streamStatsPrinter.mjs:15:7)
    at DestroyableTransform.emit (node:events:509:20)
    at emit (/root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/node_modules/progress-stream/index.js:36:6)
    at DestroyableTransform.end [as _flush] (/root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/node_modules/progress-stream/index.js:49:3)
    at DestroyableTransform.prefinish (/root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/node_modules/readable-stream/lib/_stream_transform.js:138:10)
    at DestroyableTransform.emit (node:events:509:20)
    at prefinish (/root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/node_modules/readable-stream/lib/_stream_writable.js:619:14)
    at finishMaybe (/root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/node_modules/readable-stream/lib/_stream_writable.js:627:5)

Node.js v25.9.0

Do you know this issue ? 0.32.4

I didn't have this issue in the xo-cli@0.32.3

Error message

root@0d4888866043:/app#  xo-cli rest get --output=/tmp/xo_cli_get_resource_5dd61abf-d959-4c62-a8ca-b0786eef4258 vifs/cba827ae-0cb7-8f19-6499-ce47516b6df8
/root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/node_modules/human-format/index.js:290
      throw new TypeError("value must be a number");
      ^

TypeError: value must be a number
    at humanFormat$raw (/root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/node_modules/human-format/index.js:290:13)
    at humanFormat (/root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/node_modules/human-format/index.js:223:16)
    at DestroyableTransform.printProgress (file:///root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/_streamStatsPrinter.mjs:15:7)
    at DestroyableTransform.emit (node:events:509:20)
    at emit (/root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/node_modules/progress-stream/index.js:36:6)
    at DestroyableTransform.end [as _flush] (/root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/node_modules/progress-stream/index.js:49:3)
    at DestroyableTransform.prefinish (/root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/node_modules/readable-stream/lib/_stream_transform.js:138:10)
    at DestroyableTransform.emit (node:events:509:20)
    at prefinish (/root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/node_modules/readable-stream/lib/_stream_writable.js:619:14)
    at finishMaybe (/root/.nvm/versions/node/v25.9.0/lib/node_modules/xo-cli/node_modules/readable-stream/lib/_stream_writable.js:627:5)

Node.js v25.9.0

To reproduce

  1. install xo-cli@0.32.4
  2. Try to get vif of a VM
  3. BOUM it's broken
  4. Rollback to xo-cli@0.32.3
  5. Retry
  6. Work like a charm`.

Expected behavior

it should works

Screenshots

No response

Node

24

Hypervisor

8.3

Additional context

I try nodejs 24 & 25, same result, 26 is not supported i think by xo

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions