{"record":{"id":"f36ae3e2dd1be3fe","repo":"DioxusLabs/dioxus","slug":"query-parameter-not-found-in-function-argumen","errorCode":null,"errorMessage":"query parameter `{}` not found in function arguments","messagePattern":"query parameter `(.+?)` not found in function arguments","errorType":"validation","errorClass":"syn::Error","httpStatus":null,"severity":"error","filePath":"packages/fullstack-macro/src/lib.rs","lineNumber":698,"sourceCode":"                }\n                PathParam::WildCard(_lit, _, _star, ident, ty, _) => {\n                    let (new_ident, new_ty) = arg_map.remove_entry(ident).ok_or_else(|| {\n                        syn::Error::new(\n                            ident.span(),\n                            format!(\"path parameter `{}` not found in function arguments\", ident),\n                        )\n                    })?;\n                    *ident = new_ident;\n                    *ty = new_ty.0;\n                }\n                PathParam::Static(_lit) => {}\n            }\n        }\n\n        let mut query_params = Vec::new();\n        for param in route.query_params {\n            let (ident, ty) = arg_map.remove_entry(&param.binding).ok_or_else(|| {\n                syn::Error::new(\n                    param.binding.span(),\n                    format!(\n                        \"query parameter `{}` not found in function arguments\",\n                        param.binding\n                    ),\n                )\n            })?;\n            query_params.push(QueryParam {\n                binding: ident,\n                name: param.name,\n                catch_all: param.catch_all,\n                ty: ty.0,\n                arg_idx: ty.1,\n            });\n        }\n\n        // Disallow multiple query params if one is a catch-all\n        if query_params.iter().any(|param| param.catch_all) && query_params.len() > 1 {","sourceCodeStart":680,"sourceCodeEnd":716,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/fullstack-macro/src/lib.rs#L680-L716","documentation":"Same arg-matching pass as path params, but for query parameters: a {?:query} binding in the route string names an identifier that is not present among the function's typed arguments, so the macro cannot bind or type the query parameter.","triggerScenarios":"Thrown at packages/fullstack-macro/src/lib.rs:698 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Add a function argument matching the query parameter name, or remove the query parameter from the route string."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-23T08:17:48.524Z"}