{"record":{"id":"f22d6b407367b9eb","repo":"DioxusLabs/dioxus","slug":"expected-one-of-get-post-put-delete-head-con","errorCode":null,"errorMessage":"expected one of (GET, POST, PUT, DELETE, HEAD, CONNECT, OPTIONS, TRACE)","messagePattern":"expected one of \\(GET, POST, PUT, DELETE, HEAD, CONNECT, OPTIONS, TRACE\\)","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/fullstack-macro/src/lib.rs","lineNumber":1463,"sourceCode":"            Self::Connect(span) => Ident::new(\"connect\", span.span()),\n            Self::Options(span) => Ident::new(\"options\", span.span()),\n            Self::Trace(span) => Ident::new(\"trace\", span.span()),\n            Self::Patch(span) => Ident::new(\"patch\", span.span()),\n        }\n    }\n\n    fn new_from_string(s: &str) -> Self {\n        match s.to_uppercase().as_str() {\n            \"GET\" => Self::Get(Ident::new(\"GET\", Span::call_site())),\n            \"POST\" => Self::Post(Ident::new(\"POST\", Span::call_site())),\n            \"PUT\" => Self::Put(Ident::new(\"PUT\", Span::call_site())),\n            \"DELETE\" => Self::Delete(Ident::new(\"DELETE\", Span::call_site())),\n            \"HEAD\" => Self::Head(Ident::new(\"HEAD\", Span::call_site())),\n            \"CONNECT\" => Self::Connect(Ident::new(\"CONNECT\", Span::call_site())),\n            \"OPTIONS\" => Self::Options(Ident::new(\"OPTIONS\", Span::call_site())),\n            \"TRACE\" => Self::Trace(Ident::new(\"TRACE\", Span::call_site())),\n            \"PATCH\" => Self::Patch(Ident::new(\"PATCH\", Span::call_site())),\n            _ => panic!(\"expected one of (GET, POST, PUT, DELETE, HEAD, CONNECT, OPTIONS, TRACE)\"),\n        }\n    }\n}\n\nmod kw {\n    syn::custom_keyword!(with);\n}\n\n/// The arguments to the `server` macro.\n///\n/// These originally came from the `server_fn` crate, but many no longer apply after the 0.7 fullstack\n/// overhaul. We keep the parser here for temporary backwards compatibility with existing code, but\n/// these arguments will be removed in a future release.\n#[derive(Debug)]\n#[non_exhaustive]\n#[allow(unused)]\nstruct ServerFnArgs {\n    /// The name of the struct that will implement the server function trait","sourceCodeStart":1445,"sourceCodeEnd":1481,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/fullstack-macro/src/lib.rs#L1445-L1481","documentation":"A route method string passed to the fullstack macro did not match any supported HTTP verb. new_from_string only recognizes GET, POST, PUT, DELETE, HEAD, CONNECT, OPTIONS, TRACE, and PATCH; anything else falls through to the error arm.","triggerScenarios":"Thrown at packages/fullstack-macro/src/lib.rs:1463 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of the supported HTTP methods in the server function attribute: GET, POST, PUT, DELETE, HEAD, CONNECT, OPTIONS, or TRACE."],"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-14T00:17:10.932Z"}