From 1494a2b958801b75680f3d09c02f3111d6789936 Mon Sep 17 00:00:00 2001 From: Keerthi Humsika Kattamudi Date: Wed, 1 Jul 2026 14:07:09 -0500 Subject: [PATCH] [BI-2941] BI-2941 - Added logic to catch the "413 - Request entity too large" error from backend and display a custom error that better explains the issue related to file size. --- src/views/import/ImportGeno.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/views/import/ImportGeno.vue b/src/views/import/ImportGeno.vue index d7ec42338..2aa38bd31 100644 --- a/src/views/import/ImportGeno.vue +++ b/src/views/import/ImportGeno.vue @@ -151,7 +151,9 @@ export default class ImportExperiment extends ProgramsBase { this.$emit('show-success-notification', `Genotypic data has uploaded and is being processed. Check the 'Jobs' page for processing status`); } } catch (e) { - if (e.response && e.response.statusText && e.response.status != 500) { + if (e.response && e.response.status == 413) { + this.$emit('show-error-notification', 'Uploaded file exceeds the maximum allowed file size.'); + } else if (e.response && e.response.statusText && e.response.status != 500) { this.$emit('show-error-notification', e.response.statusText); } else { this.$emit('show-error-notification', 'An unknown error has occurred when uploading your import.');