fix(core): Improve error handling in credential decryption and parsing (#12868)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-01-27 20:03:34 +01:00
committed by GitHub
parent f64c6bf9ac
commit 0c86bf2b37
3 changed files with 83 additions and 13 deletions

View File

@@ -14,3 +14,10 @@ export const CONFIG_FILES = 'N8N_CONFIG_FILES';
export const BINARY_DATA_STORAGE_PATH = 'N8N_BINARY_DATA_STORAGE_PATH';
export const UM_EMAIL_TEMPLATES_INVITE = 'N8N_UM_EMAIL_TEMPLATES_INVITE';
export const UM_EMAIL_TEMPLATES_PWRESET = 'N8N_UM_EMAIL_TEMPLATES_PWRESET';
export const CREDENTIAL_ERRORS = {
NO_DATA: 'No data is set on this credentials.',
DECRYPTION_FAILED:
'Credentials could not be decrypted. The likely reason is that a different "encryptionKey" was used to encrypt the data.',
INVALID_JSON: 'Decrypted credentials data is not valid JSON.',
};