Skip to content

node-fetch error when uploading files with cli #50

Description

When using the cli to upload files to a solution, I get an node-fetch error. Both on macOS and Windows.

This means when I use it in scripting it send an exit code of 1 instead of 0.
And that is used for me to know if the upload succeded.

But the upload do happen.

Command:
dw files ./sample-file.txt Files/Sample-folder --import --overwrite --host example.com --protocol https --apiKey SampleAPI.5DEA610A29AF4FCDBBDA124A4AF0DD15

Output in terminal:

Uploading files
Uploading chunk 1 of 1
/sample-file.txt
(node:59522) [https://github.com/node-fetch/node-fetch/issues/1167] DeprecationWarning: form-data doesn't follow the spec and requires special treatment. Use alternative package
(Use `node --trace-deprecation ...` to show where the warning was created)
Finished uploading chunk 1 of 1
Finished uploading files. Total files: 1, total chunks: 1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions