{"record":{"id":"416d8d306f5af07f","repo":"DioxusLabs/dioxus","slug":"encoding-not-found","errorCode":null,"errorMessage":"Encoding not found.","messagePattern":"Encoding not found\\.","errorType":"validation","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/fullstack-macro/src/lib.rs","lineNumber":1752,"sourceCode":"                    output = Some(type_from_ident(syn::parse_quote!(Json)));\n                    builtin_encoding = true;\n                }\n                \"cbor\" => {\n                    input = Some(type_from_ident(syn::parse_quote!(Cbor)));\n                    output = Some(type_from_ident(syn::parse_quote!(Cbor)));\n                    builtin_encoding = true;\n                }\n                \"getcbor\" => {\n                    input = Some(type_from_ident(syn::parse_quote!(GetUrl)));\n                    output = Some(type_from_ident(syn::parse_quote!(Cbor)));\n                    builtin_encoding = true;\n                }\n                \"getjson\" => {\n                    input = Some(type_from_ident(syn::parse_quote!(GetUrl)));\n                    output = Some(syn::parse_quote!(Json));\n                    builtin_encoding = true;\n                }\n                _ => return Err(syn::Error::new(encoding.span(), \"Encoding not found.\")),\n            }\n        }\n\n        Ok(Self {\n            struct_name,\n            prefix,\n            input,\n            input_derive,\n            output,\n            fn_path,\n            builtin_encoding,\n            server,\n            client,\n            custom_wrapper,\n            impl_from,\n            impl_deref,\n            protocol,\n            server_args,","sourceCodeStart":1734,"sourceCodeEnd":1770,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/fullstack-macro/src/lib.rs#L1734-L1770","documentation":"While resolving the encoding shorthand in the #[server] macro arguments, the provided encoding name did not match any builtin (Json, Cbor, GetUrl, PostUrl, Getcbor, etc.) or resolvable encoding type, so the macro cannot determine how to serialize requests and responses.","triggerScenarios":"Thrown at packages/fullstack-macro/src/lib.rs:1752 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["Use one of the encodings supported by the server macro (e.g. the default JSON encoding); check the `encoding` value for typos."],"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"}