{"record":{"id":"bb5838751ea9a1ca","repo":"n8n-io/n8n","slug":"bad-request-please-check-your-parameters","errorCode":null,"errorMessage":"Bad request - please check your parameters","messagePattern":"Bad request - please check your parameters","errorType":"exception","errorClass":"NodeOperationError","httpStatus":400,"severity":"error","filePath":"packages/@n8n/nodes-langchain/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.ts","lineNumber":226,"sourceCode":"\t\t\t\tmaxOutputTokens: options.maxOutputTokens,\n\t\t\t\tsafetySettings,\n\t\t\t\tcallbacks: [new N8nLlmTracing(this, { errorDescriptionMapper })],\n\t\t\t\t// Handle ChatVertexAI invocation errors to provide better error messages\n\t\t\t\tonFailedAttempt: makeN8nLlmFailedAttemptHandler(this, (error: any) => {\n\t\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n\t\t\t\t\tconst status = Number(error?.response?.status);\n\t\t\t\t\tconst customError = makeErrorFromStatus(status, {\n\t\t\t\t\t\tmodelName,\n\t\t\t\t\t});\n\n\t\t\t\t\tif (customError) {\n\t\t\t\t\t\tthrow new NodeOperationError(this.getNode(), error as JsonObject, customError);\n\t\t\t\t\t}\n\n\t\t\t\t\tif (status === 400) {\n\t\t\t\t\t\t// Surface Google's error detail; a bare rethrow would hide it behind a\n\t\t\t\t\t\t// generic \"Bad request\" wrapper\n\t\t\t\t\t\tthrow new NodeOperationError(this.getNode(), error as JsonObject, {\n\t\t\t\t\t\t\tmessage: 'Bad request - please check your parameters',\n\t\t\t\t\t\t\tdescription:\n\t\t\t\t\t\t\t\textractGoogleErrorMessage(error as { message?: string }) ??\n\t\t\t\t\t\t\t\t// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access\n\t\t\t\t\t\t\t\t(typeof error?.message === 'string' ? (error.message as string) : undefined),\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\n\t\t\t\t\tthrow error;\n\t\t\t\t}),\n\t\t\t};\n\n\t\t\t// Add thinkingBudget if specified\n\t\t\tif (options.thinkingBudget !== undefined) {\n\t\t\t\tmodelConfig.thinkingBudget = options.thinkingBudget;\n\t\t\t}\n\n\t\t\tconst model = new ChatVertexAI(modelConfig);","sourceCodeStart":208,"sourceCodeEnd":244,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/nodes-langchain/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.ts#L208-L244","documentation":"Error-status mapper for ChatVertexAI: the API returned 400, meaning one or more request parameters (model config, safety settings, generation options) are invalid. The raw Google error is attached as the underlying cause for inspection.","triggerScenarios":"Thrown at packages/@n8n/nodes-langchain/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.ts:226 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Review temperature, topK/topP, maxOutputTokens and safety settings for out-of-range values","Read the attached raw error to see which parameter Google rejected"],"exampleFix":null,"handlingStrategy":"fallback","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5ac6606e81f67bb9534255570cd4e86fd8101eee","analyzedAt":"2026-08-12T05:26:35.080Z","contentChangedAt":"2026-08-12T05:26:35.080Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}