{"record":{"id":"2b768f82886a5fad","repo":"weaviate/weaviate","slug":"wrong-parameters-2b768f","errorCode":null,"errorMessage":"wrong parameters","messagePattern":"wrong parameters","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"modules/sum-transformers/additional/summary/summary.go","lineNumber":58,"sourceCode":"\treturn &Params{}\n}\n\nfunc (p *SummaryProvider) ExtractAdditionalFn(param []*ast.Argument, class *models.Class) interface{} {\n\treturn p.parseSummaryArguments(param)\n}\n\nfunc (p *SummaryProvider) AdditionalFieldFn(classname string) *graphql.Field {\n\treturn p.additionalSummaryField(classname)\n}\n\nfunc (p *SummaryProvider) AdditionalPropertyFn(ctx context.Context,\n\tin []search.Result, params interface{}, limit *int,\n\targumentModuleParams map[string]interface{}, cfg moduletools.ClassConfig,\n) ([]search.Result, error) {\n\tif parameters, ok := params.(*Params); ok {\n\t\treturn p.findSummary(ctx, in, parameters)\n\t}\n\treturn nil, errors.New(\"wrong parameters\")\n}\n","sourceCodeStart":40,"sourceCodeEnd":60,"githubUrl":"https://github.com/weaviate/weaviate/blob/75aa4b6d11f8818305aafd4440b4e32794f7ca04/modules/sum-transformers/additional/summary/summary.go#L40-L60","documentation":"The sum-transformers module's AdditionalPropertyFn expects the params argument to be the module's *Params type; if the dynamic type doesn't match the assertion, it throws 'wrong parameters'. This indicates the additional property was dispatched with unexpected parameter data — typically a marshalling or module wiring mismatch between what the GraphQL layer produced and what the module expects.","triggerScenarios":"Requesting the _additional { summary } property when the params cannot be asserted to *summary.Params — e.g. malformed/incorrectly shaped summary arguments in the GraphQL query, or a mismatch between module version and client schema.","commonSituations":"Out-of-date clients sending legacy argument shapes; mixing module versions in a cluster; issuing the additional property through a path that doesn't deserialize params into the expected struct.","solutions":["Ensure the GraphQL query passes valid summary arguments matching the module schema (e.g. summary: { properties: [...] })","Align client and Weaviate/module versions so the params schema matches","Verify only one sum-transformers module version is deployed across the cluster"],"exampleFix":"// before\n_additional { summary } // no valid params shape\n// after\n_additional { summary(properties: [\"description\"], radius: 3) { ... } }","handlingStrategy":"validation","validationCode":"// ensure summary arguments match the module schema before querying\nargs := map[string]interface{}{\"properties\": []string{\"content\"}}\nif len(args[\"properties\"].([]string)) == 0 { return errors.New(\"summary requires properties\") }","typeGuard":"if p, ok := params.(*summary.Params); !ok { return fmt.Errorf(\"unexpected params type %T\", params) }","tryCatchPattern":"catch (e) { if (e.message === 'wrong parameters') { // fix GraphQL summary argument shape / align module versions } }","preventionTips":["Keep client libraries and module versions in sync","Use generated GraphQL types from the live schema","Add integration tests for _additional summary queries"],"tags":["graphql","modules","parameters","weaviate"],"backgroundTag":"module-param-type-mismatch","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"}