Skip to content

Upload fails - file metadata is missing in GCS #521

Description

@sumit-rd

I have react application in production (tus node server with tus gcs store) with many active users.
From time to time my server is being reset from error I get from tus, due to file metadata is missing.
The error is:

            /node_modules/@tus/gcs-store/dist/index.js:130
            const { size, metadata: meta } = metadata.metadata;
                    ^
            TypeError: Cannot destructure property 'size' of 'metadata.metadata' as it is undefined.

I can’t find a way to reproduce it, and therefore I cant find a way to fix it.
I also couldn’t find a way to catch this error and prevent the reset.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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