{"record":{"id":"c6356c302db75f6f","repo":"DioxusLabs/dioxus","slug":"cannot-have-multiple-query-parameters-when-one-is","errorCode":null,"errorMessage":"Cannot have multiple query parameters when one is a catch-all","messagePattern":"Cannot have multiple query parameters when one is a catch-all","errorType":"validation","errorClass":"syn::Error","httpStatus":null,"severity":"error","filePath":"packages/fullstack-macro/src/lib.rs","lineNumber":717,"sourceCode":"                    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 {\n            return Err(syn::Error::new(\n                Span::call_site(),\n                \"Cannot have multiple query parameters when one is a catch-all\",\n            ));\n        }\n\n        if let Some(options) = route.oapi_options.as_mut() {\n            options.merge_with_fn(function)\n        }\n\n        let method = match (method_from_macro, route.method) {\n            (Some(method), None) => method,\n            (None, Some(method)) => method,\n            (Some(_), Some(_)) => {\n                return Err(syn::Error::new(\n                    Span::call_site(),\n                    \"HTTP method specified both in macro and in attribute\",\n                ));\n            }","sourceCodeStart":699,"sourceCodeEnd":735,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/fullstack-macro/src/lib.rs#L699-L735","documentation":"A route declared more than one query parameter while at least one of them is a catch-all ({?:..rest}). A catch-all consumes the entire query string, so combining it with other query bindings is ambiguous and rejected at macro expansion time.","triggerScenarios":"Thrown at packages/fullstack-macro/src/lib.rs:717 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Keep only the catch-all query parameter, or remove the catch-all so multiple named query parameters can be used."],"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"}