{"record":{"id":"a2c9a00497378fe9","repo":"DioxusLabs/dioxus","slug":"unrecognized-attribute-expected-server","errorCode":null,"errorMessage":"Unrecognized attribute, expected #[server(...)]","messagePattern":"Unrecognized attribute, expected #\\[server\\(\\.\\.\\.\\)\\]","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/fullstack-macro/src/lib.rs","lineNumber":1896,"sourceCode":"                            \"Unrecognized #[server] attribute, expected \\\n                             #[server(default)] or #[server(rename = \\\n                             \\\"fieldName\\\")]\",\n                        )),\n                    }\n                } else if attr.path().is_ident(\"doc\") {\n                    // Allow #[doc = \"documentation\"]\n                    Ok(attr.clone())\n                } else if attr.path().is_ident(\"allow\") {\n                    // Allow #[allow(...)]\n                    Ok(attr.clone())\n                } else if attr.path().is_ident(\"deny\") {\n                    // Allow #[deny(...)]\n                    Ok(attr.clone())\n                } else if attr.path().is_ident(\"ignore\") {\n                    // Allow #[ignore]\n                    Ok(attr.clone())\n                } else {\n                    Err(Error::new(\n                        attr.span(),\n                        \"Unrecognized attribute, expected #[server(...)]\",\n                    ))\n                }\n            })\n            .collect::<Result<Vec<_>>>()?;\n        arg.attrs = vec![];\n        Ok(ServerFnArg {\n            arg,\n            server_fn_attributes,\n        })\n    }\n}\n\nfn type_from_ident(ident: Ident) -> Type {\n    let mut segments = Punctuated::new();\n    segments.push(PathSegment {\n        ident,","sourceCodeStart":1878,"sourceCodeEnd":1914,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/fullstack-macro/src/lib.rs#L1878-L1914","documentation":"An unknown attribute was found on a server function signature. Only #[server(...)], #[doc], #[allow], #[deny] and similar pass-through attributes are permitted; anything else is rejected so typos don't silently change behavior.","triggerScenarios":"Thrown at packages/fullstack-macro/src/lib.rs:1896 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use a #[server(...)] attribute here; other attribute names are not recognized in this position."],"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"}