{"record":{"id":"e6bd30089731f423","repo":"weaviate/weaviate","slug":"wrong-tasktype-supported-task-types-are-v-joine","errorCode":null,"errorMessage":"wrong taskType supported task types are: %v (joined validation errors: %s)","messagePattern":"wrong taskType supported task types are: (.+?) \\(joined validation errors: (.+?)\\)","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"modules/text2vec-google/vectorizer/class_settings.go","lineNumber":97,"sourceCode":"\tvar errorMessages []string\n\tif err := ic.BaseClassSettings.Validate(class); err != nil {\n\t\terrorMessages = append(errorMessages, err.Error())\n\t}\n\n\tapiEndpoint := ic.ApiEndpoint()\n\tif apiEndpoint != DefaultAIStudioEndpoint {\n\t\tprojectID := ic.ProjectID()\n\t\tif projectID == \"\" {\n\t\t\terrorMessages = append(errorMessages, fmt.Sprintf(\"%s cannot be empty\", projectIDProperty))\n\t\t}\n\t}\n\n\tif !slices.Contains(availableTaskTypes, ic.TaskType()) {\n\t\terrorMessages = append(errorMessages, fmt.Sprintf(\"wrong taskType supported task types are: %v\", availableTaskTypes))\n\t}\n\n\tif len(errorMessages) > 0 {\n\t\treturn fmt.Errorf(\"%s\", strings.Join(errorMessages, \", \"))\n\t}\n\n\treturn nil\n}\n\nfunc (ic *classSettings) getStringProperty(name, defaultValue string) string {\n\treturn ic.BaseClassSettings.GetPropertyAsString(name, defaultValue)\n}\n\nfunc (ic *classSettings) getDefaultModel(apiEndpoint string) string {\n\tif apiEndpoint == DefaultAIStudioEndpoint {\n\t\treturn DefaulAIStudioModel\n\t}\n\treturn DefaultModel\n}\n\n// Google params\nfunc (ic *classSettings) ApiEndpoint() string {","sourceCodeStart":79,"sourceCodeEnd":115,"githubUrl":"https://github.com/weaviate/weaviate/blob/75aa4b6d11f8818305aafd4440b4e32794f7ca04/modules/text2vec-google/vectorizer/class_settings.go#L79-L115","documentation":"Class-settings validation for the text2vec-google module failed on one or more checks: a base-settings validation error, a missing projectID when a non-default API endpoint is set, or a taskType outside the supported list. This is the joined message of all accumulated validation errors (the %s), so the specific offending field is in the joined details, not this prefix.","triggerScenarios":"Thrown at modules/text2vec-google/vectorizer/class_settings.go:97 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Read the joined validation details in the full message to see which checks failed","Set XGoogleClientProjectID when using a custom ApiEndpoint","Set taskType to one of the supported values (e.g. RETRIEVAL_DOCUMENT, RETRIEVAL_QUERY) or leave it unset for auto-selection","Fix any base class-settings errors reported alongside"],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"75aa4b6d11f8818305aafd4440b4e32794f7ca04","analyzedAt":"2026-09-04T14:58:20.392Z","contentChangedAt":"2026-09-04T14:58:20.392Z","schemaVersion":2},"datasetVersion":"2026-09-11T21:17:09.523Z"}