Skip to content

Server crashes when an upload is cancelled #411

@naumf

Description

@naumf

Cancelling an upload in progress (tested with uppy as a client), throws the following uncaught exception:

ENOENT: no such file or directory, open '/tmp/Ln3r7sM8TZ-0'
    err: {
      "type": "Error",
      "message": "ENOENT: no such file or directory, open '/tmp/Ln3r7sM8TZ-0'",
      "stack":
          Error: ENOENT: no such file or directory, open '/tmp/Ln3r7sM8TZ-0'
      "errno": -2,
      "code": "ENOENT",
      "syscall": "open",
      "path": "/tmp/Ln3r7sM8TZ-0"
    }

Package versions:

"@tus/s3-store": "1.0.0-beta.4",
"@tus/server": "1.0.0-beta.5"

I'm working on a fix, will send a PR soon.

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