Skip to content

when we upload an empty file, it will throw uncaughtException which make the app exit #25

@garylgh

Description

@garylgh

ERROR #20996 sys app exit because TypeError [uncaughtException:ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Array
at new NodeError (node:internal/errors:371:5)
at Hash.update (node:internal/crypto/hash:105:11)
at Signature.update (myapp/node_modules/_hc-service-client@1.2.1@hc-service-client/lib/signature/system_call.js:15:14)
at FormStream. (myapp/node_modules/_hc-service-client@1.2.1@hc-service-client/lib/service_client.js:175:16)
at FormStream.emit (node:events:402:35)
at FormStream._emitBuffers (myapp/node_modules/_formstream@1.1.0@formstream/lib/formstream.js:236:10)
at FormStream.drain (myapp/node_modules/_formstream@1.1.0@formstream/lib/formstream.js:268:8)
at FormStream.resume (myapp/node_modules/_formstream@1.1.0@formstream/lib/formstream.js:285:10)
at processTicksAndRejections (node:internal/process/task_queues:78:11) {
code: 'uncaughtException:ERR_INVALID_ARG_TYPE'
} (node_modules/_hc-bee@1.0.12@hc-bee/lib/base_application.js:165:14)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions