reflex-dev/reflex
Documented errors, page 2 of 3. Back to reflex-dev/reflex
| Code / Message | Type | Severity | Tags |
|---|---|---|---|
| must be entered before calling this method. | exception | error | context-manager, runtime, state |
| f"The prop is deprecated, but the replacement is also… | validation | error | reflex, react-player, deprecated-prop, migration |
| Cannot include stylesheets from outside the assets directory | exception | error | reflex, stylesheets, path-validation, compilation |
| Only one default import is allowed. | exception | error | reflex, imports, compiler, valueerror |
| Cannot determine the source code for the var in | exception | error | reflex, cached-var, inspect, source-introspection |
| reflex.Config.plugins contains plugin(s) that could not be… | exception | error | reflex, config, plugins, import-error, env-var |
| CallableEventSpec has no associated function. | exception | error | reflex, event-handler, internal-api |
| Cached var cannot access arbitrary state ` `, is it defined… | exception | error | reflex, cached-var, closure, dependency-tracking |
| The _var_full_name_needs_state_prefix argument is not… | exception | error | reflex, var, deprecated-argument, upgrade |
| Could not foreach over var | exception | error | reflex, foreach, type-annotation, state |
| Frontend process has no stdout. | exception | error | reflex, testing, app-harness, frontend, process-management |
| @rx.event(background=True) is required for… | exception | error | reflex, file-upload, event-handler, background-task |
| could not reach the deployment service | exception | error | network, deployment, upload, connection-error, hosting |
| Failed to create temp directory for extracting zip | exception | error | reflex, templates, tempdir, permissions, disk-full |
| `create_passthrough_component_memo` requires a component… | exception | error | reflex, memo, passthrough, component-return |
| Upload event args field is too large. | exception | error | upload, payload-limit, multipart |
| Invalid enum value: for | exception | error | environment, enum, validation, config |
| code should be string literal or a StringVar type. Got | exception | error | shiki, var-type, prop-validation |
| Compiled page root must be a Component before it can be… | exception | error | reflex, page, compiler, typeerror |
| Component-returning `@rx.memo | exception | error | reflex, memo, return-value, component, typeerror |
| Markdown component must have exactly one child containing… | validation | error | reflex, markdown, children-validation |
| StopAsyncIteration | exception | info | upload, async-iteration, control-flow |
| Expected 1 or 2 parameters in foreach render function, got | exception | error | reflex, foreach, function-signature |
| rx.match should have tuples of cases and one default case… | validation | error | reflex, match, argument-structure |
| Stylesheet file is not supported. | validation | error | reflex, stylesheets, compilation, value-error |
| the upload did not finish before its window closed; this… | exception | error | upload, deployment, timeout, presigned-url, slow-network |
| Failed to get plugin class | exception | error | environment, plugin, import, attribute-error |
| Dependency detection cannot identify get_state class from a… | exception | error | reflex, dependency-tracking, code-object, internal |
| Arg name ` ` is used more than once in the route ` `. | validation | error | reflex, routing, duplicate-args, validation |
| Plugin is trying to modify but it does not exist. | exception | error | reflex, plugin, compiler, filenotfound |
| `@rx.memo` does not support positional-only parameters in | exception | error | reflex, memo, positional-only, signature, typeerror |
| You must specify either children or src for the script… | exception | error | script, prop-validation |
| Upload event args must precede the file parts. | exception | error | upload, multipart, field-ordering |
| Using a ComponentState as `render_fn` inside `rx.foreach`… | exception | error | reflex, foreach, component-state |
| f"FormControl can only have at most one child, got | validation | error | reflex, radix, form-control, children-validation |
| For conditional vars, the second argument must be set. | validation | error | reflex, conditional-rendering, missing-argument |
| ComputedVar dependencies must be Var instances or var names… | exception | error | reflex, computed-var, dependencies, typeerror, state |
| Could not find ToOperation for | exception | error | reflex, var-subclass, registry, internal |
| Invalid plugin value | exception | error | environment, plugin, validation, import |
| Output includes which will be displayed as a string. If you… | exception | error | var-coercion, performance, rendering |
| Invalid boolean value | exception | error | environment, boolean, validation, config |
| ` ` does not accept prop ` `. Only declared props may be… | exception | error | reflex, memo, props, unknown-argument |
| reflex.Config.plugins entry | exception | error | reflex, config, plugins, instantiation |
| Catchall pattern ` ` is not valid. Only ` ` is allowed. | validation | error | reflex, routing, catchall, splat, validation |
| Invalid literal value | exception | error | environment, literal, validation, config |
| Only Radix TextFieldRoot and DebounceInput are allowed as… | validation | error | reflex, radix, form-control, type-error |
| Route part ` ` with optional argument is not valid. Reflex… | validation | error | reflex, routing, optional-args, validation |
| rx.match should have at least one case. | validation | error | reflex, match, missing-cases |
| The function passed to | exception | error | reflex, arrayvar, map, callback-signature |
| The stylesheet file does not exist. | exception | error | reflex, stylesheets, file-not-found, compilation |
| Unable to write the downloaded zip to disk | exception | error | reflex, templates, disk-full, write-error, tempdir |
| Expected a mapping type or a dataclass, got | exception | error | reflex, objectvar, type-error, mapping |
| Missing reflex-client-token or reflex-event-handler header. | http | error | upload, headers, http-400 |
| Unknown format code ' ' for object of type 'NumberVar'. It… | exception | error | reflex, numbervar, format-spec, var-value-error |
| Uploaded file is not an UploadFile. | exception | error | upload, multipart, type-validation |
| bad hostname provided | validation | error | reflex, hosting, hostname, validation, deploy |
| ChildrenTypeError(component=cls.__name__, child=child) | exception | critical | reflex, redis, state, deserialization |
| ` ` captures rest props from extra keyword arguments. Do… | exception | error | reflex, memo, restprop, kwargs, typeerror |
| Match children count mismatch: expected | validation | error | reflex, match, internal-invariant |
| Upload chunk iterator is closed. | exception | error | upload, streaming, lifecycle |
| The _var_is_string argument is not supported for Var. | exception | error | reflex, var, deprecated-argument, upgrade |
| Var-returning `@rx.memo | exception | error | reflex, component-state, instantiation, api-misuse |
| Backend was not initialized. | exception | error | reflex, testing, app-harness, lifecycle |
| Failed to import module | exception | error | environment, plugin, import, module-not-found |
| Event handler argument conflicts with a reserved upload… | exception | error | reflex, file-upload, argument-error, name-collision |
| Arguments to event handlers must be Vars or… | exception | error | reflex, event-handler, json-serialization |
| Array elements must be of type LiteralVar, not | exception | error | reflex, literal-var, array, serialization |
| No valid JSON representation for | exception | error | reflex, json, nan, infinity, serialization |
| The _var_is_local argument is not supported for Var. | exception | error | reflex, var, deprecated-argument, upgrade |
| Upload event args must be a text field, not a file. | http | error | upload, multipart, field-validation |
| Route part ` ` with argument is not valid. Reflex only… | validation | error | reflex, routing, dynamic-routes, validation |
| Invalid TOML file format at | validation | error | config, toml, format, reflex-hosting-cli |
| Only one of --vmtype or --regions should be provided. | validation | error | cli, mutually-exclusive-args, scaling, reflex-hosting-cli |
| failed to upload app source for review | exception | error | security-review, upload, presigned-url, storage |
| Missing 'tag' keyword-argument for Icon | validation | error | reflex, lucide, icon, missing-argument |
| Catchall pattern ` ` must be at the end of the route. | validation | error | reflex, routing, catchall, validation |
| ` ` only accepts children positionally. | exception | error | reflex, memo, children, reserved-keyword, typeerror |
| Backend is not running. | exception | error | reflex, testing, app-harness, backend, lifecycle |
| could not upload the build to storage: HTTP | exception | error | deployment, upload, storage, http-status-error |
| slice step cannot be zero | exception | error | reflex, arrayvar, slice, step-zero |
| ` ` handler should have a parameter annotated as… | exception | error | reflex, file-upload, type-annotation, event-handler |
| Invalid log level value | exception | error | environment, logging, validation, config |
| f"The radio group component takes in a list, got | validation | error | reflex, radix, radio-group, type-error |
| Form field mismatch for on_submit handler | exception | error | reflex, form, typeddict, validation |
| deployment failed | exception | error | reflex, hosting, deploy, api-error |
| Invalid prop(s) for . Supported props are | validation | error | reflex, props, validation, unknown-argument |
| MissingAnnotationError | exception | error | reflex, event-handler, type-annotation |
| is not a valid event handler. | exception | error | reflex, file-upload, event-handler, validation |
| The condition must be set. | validation | error | reflex, conditional-rendering, validation |
| ` ` is missing required prop ` `. | exception | error | reflex, memo, props, required-argument |
| Frontend functionality requires `selenium` to be installed… | exception | error | reflex, testing, selenium, optional-dependency |
| app_name must be provided when app_source is a string. | exception | error | reflex, testing, app-harness, validation |
| Invalid integer value | exception | error | environment, integer, validation, config |
| Stylesheet file name cannot be | exception | error | reflex, stylesheets, name-collision, compilation |
| Cannot set update interval without caching. | exception | error | reflex, computed-var, cache, decorator |
| Invalid upload chunk disposition. | exception | error | upload, multipart, content-disposition |
| Invalid plugin class | exception | error | environment, plugin, type-validation, subclass |
| The component ` ` cannot have ` ` as a child component | exception | error | reflex, vars, runtime-value |
| Invalid event chain: of type | exception | error | reflex, event-chain, var-misuse, validation |
| REDIS_URL is required when using the redis state manager. | exception | critical | reflex, config, redis, state-manager, missing-env-var |