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 the 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.