Skip to content

spo file get --asFile on macOS #931

@fanuelsen

Description

@fanuelsen

When trying to get a file with specified local path to where file should be saved it throwes the following error:

(node:19607) UnhandledPromiseRejectionWarning: TypeError [ERR_INVALID_ARG_VALUE]: The argument 'path' must be a string or Uint8Array without null bytes. Received <Buffer 50 4b 03 04 14 00 06 00 08 00 00 00 21 00 26 d0 bb 06 5c 01 00 00 88 04 00 00 13 00 08 02 5b 43 6f 6e 74 65 6e 74 5f 54 ...
at Object.openSync (fs.js:440:3)
at Object.writeFileSync (fs.js:1210:35)
at /usr/local/lib/node_modules/@pnp/office365-cli/dist/o365/spo/commands/file/file-get.js:117:24
at processTicksAndRejections (internal/process/task_queues.js:86:5)
(node:19607) 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(). (rejection id: 1)
(node:19607) [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.

If i use any other options the file info returnes as expected.
Screenshot 2019-04-16 at 13 45 47

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions