Skip to content

Apps.upload() method not working #198

@ajithmohann

Description

@ajithmohann

Error Description: I am trying to upload content to the newly created app and getting following error.

internal/validators.js:168
throw new ERR_INVALID_ARG_TYPE(name,
^
TypeError [ERR_INVALID_ARG_TYPE]: The "buffer" argument must be an instance of Buffer, TypedArray, or DataView. Received type number (4096)
at Object.read (fs.js:496:3)
at reader (H:\Ajith\My Lab\Gaia CDN POC\test-restler\node_modules\restler\lib\multipartform.js:120:13)
at H:\Ajith\My Lab\Gaia CDN POC\test-restler\node_modules\restler\lib\multipartform.js:131:10
at FSReqCallback.oncomplete (fs.js:156:23) {
code: 'ERR_INVALID_ARG_TYPE'
}

Version Used: "cf-nodejs-client": "^0.13.0"

This seems like an issue with the 'restler' package used to upload the zipped binary content.

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