Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

400 -> 503 error

Blue Mouse068aa9edcc3f
diff --git a/backend/apps/cloud/src/data-import/data-import.controller.ts b/backend/apps/cloud/src/data-import/data-import.controller.ts
index 8f4cd8d8d..434270c94 100644
--- a/backend/apps/cloud/src/data-import/data-import.controller.ts
+++ b/backend/apps/cloud/src/data-import/data-import.controller.ts
@@ -13,6 +13,7 @@ import {
UseInterceptors,
UploadedFile,
BadRequestException,
+ ServiceUnavailableException,
Query,
Logger,
} from '@nestjs/common'
@@ -132,7 +133,7 @@ export class DataImportController {
this.logger.error(`Failed to enqueue import job: ${error.message}`)
await this.dataImportService.deleteImportRecord(dataImport.id)
this.cleanupFile(file.path)
- throw new BadRequestException(
+ throw new ServiceUnavailableException(
'Failed to start import. Please try again later.',
)
}
diff --git a/backend/apps/community/src/data-import/data-import.controller.ts b/backend/apps/community/src/data-import/data-import.controller.ts
index 4ba84c384..168f479a2 100644
--- a/backend/apps/community/src/data-import/data-import.controller.ts
+++ b/backend/apps/community/src/data-import/data-import.controller.ts
@@ -12,6 +12,7 @@ import {
UseInterceptors,
UploadedFile,
BadRequestException,
+ ServiceUnavailableException,
Query,
Logger,
} from '@nestjs/common'
@@ -127,7 +128,7 @@ export class DataImportController {
this.logger.error(`Failed to enqueue import job: ${error.message}`)
await this.dataImportService.deleteImportRecord(projectId, dataImport.id)
this.cleanupFile(file.path)
- throw new BadRequestException(
+ throw new ServiceUnavailableException(
'Failed to start import. Please try again later.',
)
}