-
Notifications
You must be signed in to change notification settings - Fork 0
Open
Labels
backendThe backend providing GraphQL APIThe backend providing GraphQL APIenhancementNew feature or requestNew feature or requestwebThe web frontendThe web frontend
Milestone
Description
PayloadTooLargeError: File truncated as it exceeds the 2000000000 byte size limit.
Sentry Issue: API-1
PayloadTooLargeError: File truncated as it exceeds the 2000000000 byte size limit.
File "app:///../node_modules/graphql-upload/public/processRequest.js", line 264, in FileStream.<anonymous>
fileError = createError(
File "node:events", line 526, in FileStream.emit
File "node:domain", line 475, in FileStream.emit
File "app:///../node_modules/busboy/lib/types/multipart.js", line 221, in PartStream.onData
file.emit('limit');
File "node:events", line 526, in PartStream.emit
...
(5 additional frame(s) were not displayed)
Solving strategies:
- Handle PayloadTooLargeError and return custom error to frontend
- Drop connection if payload is larger than specified size How to properly validate the file size of the upload? jaydenseric/graphql-upload#204
(Cannot solve this issue currently since Nestjs throw that error, not handled by resolver) - Show file too large notification before upload and after upload (handle server error)
Metadata
Metadata
Assignees
Labels
backendThe backend providing GraphQL APIThe backend providing GraphQL APIenhancementNew feature or requestNew feature or requestwebThe web frontendThe web frontend
Type
Projects
Status
In Progress