{"record":{"id":"dbdc497209b07ae7","repo":"n8n-io/n8n","slug":"unauthorized-for-this-project","errorCode":null,"errorMessage":"Unauthorized for this project","messagePattern":"Unauthorized for this project","errorType":"exception","errorClass":"NodeOperationError","httpStatus":403,"severity":"error","filePath":"packages/@n8n/nodes-langchain/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.ts","lineNumber":220,"sourceCode":"\t\t\t\tlocation,\n\t\t\t\t...(endpoint ? { endpoint } : {}),\n\t\t\t\tmodel: modelName,\n\t\t\t\ttopK: options.topK,\n\t\t\t\ttopP: options.topP,\n\t\t\t\ttemperature: options.temperature,\n\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","sourceCodeStart":202,"sourceCodeEnd":238,"githubUrl":"https://github.com/n8n-io/n8n/blob/5ac6606e81f67bb9534255570cd4e86fd8101eee/packages/@n8n/nodes-langchain/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.ts#L202-L238","documentation":"Error \"Unauthorized for this project\" thrown in n8n-io/n8n.","triggerScenarios":"Thrown at packages/@n8n/nodes-langchain/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.ts:220 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"}