{"record":{"id":"c6872e2671b5809e","repo":"n8n-io/n8n","slug":"parsing-failed","errorCode":null,"errorMessage":"Parsing failed","messagePattern":"Parsing failed","errorType":"exception","errorClass":"ExpressionExtensionError","httpStatus":null,"severity":"error","filePath":"packages/@n8n/expression-runtime/src/extensions/string-extensions.ts","lineNumber":430,"sourceCode":"\tif (pathStart >= value.length || value[pathStart] !== '/') return '/';\n\n\t// Find where path ends (first ? or #)\n\tlet pathEnd = pathStart;\n\twhile (pathEnd < value.length && value[pathEnd] !== '?' && value[pathEnd] !== '#') {\n\t\tpathEnd++;\n\t}\n\n\treturn value.slice(pathStart, pathEnd) || '/';\n}\n\nfunction parseJson(value: string): unknown {\n\ttry {\n\t\treturn JSON.parse(value);\n\t} catch (error) {\n\t\tif (value.includes(\"'\")) {\n\t\t\tthrow new ExpressionExtensionError(\"Parsing failed. Check you're using double quotes\");\n\t\t}\n\t\tthrow new ExpressionExtensionError('Parsing failed');\n\t}\n}\n\nfunction toBoolean(value: string): boolean {\n\tconst normalized = value.toLowerCase();\n\tconst FALSY = new Set(['false', 'no', '0']);\n\treturn normalized.length > 0 && !FALSY.has(normalized);\n}\n\nfunction base64Encode(value: string): string {\n\treturn toBase64(value);\n}\n\nfunction base64Decode(value: string): string {\n\treturn fromBase64(value);\n}\n\nremoveMarkdown.doc = {","sourceCodeStart":412,"sourceCodeEnd":448,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/expression-runtime/src/extensions/string-extensions.ts#L412-L448","documentation":"Error \"Parsing failed\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/expression-runtime/src/extensions/string-extensions.ts:430 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-08-12T13:17:24.610Z"}