Skip to content
Written for developers. Just using FluxPlugs? Go to the user guide.

Errors and resource limits

Service calls can reject. Handle expected errors close to the user action, avoid logging sensitive payloads, and never weaken host validation to make a plugin work.

Error Response
capability_denied:<capability> Declare and obtain approval for the required capability; do not bypass the host
plugin_api_update_required Install compatible runtime and plugin builds
plugin_not_confirmed Ask the user to review and enable the current bundle
plugin_identity_mismatch / plugin_export_missing Fix the manifest/definePlugin identity or bundle registration
plugin_stopped Ignore late results from the old instance
resource_limit / resource_not_owned Release unused resources and use only current-instance handles
image_private_address / invalid_image_url Supply a permitted public HTTPS PNG URL
image_too_large / image_dimensions_exceeded / image_invalid_png Use an image within the supported policy
invalid_plugin_network / invalid_setting_definition Fix the manifest: network needs matching network.hosts (empty only with userServers); each setting needs a title of up to 80 characters and a kind of boolean, string or number with a default of that type; only string settings can be secret
plugin_integrity_mismatch Rebuild so integrity.sha256 matches the built entry, then import again
image_limit / image_redirect_limit Release images you no longer use; keep to 3 redirects
invalid_network_request Fix the request: HTTPS URL (or an approved server’s origin), allowed headers, body only with POST, timeoutMs of 1000 to 120000, within size limits
network_host_denied / network_redirect_denied / network_redirect_limit Request, or redirect to, only listed hosts over HTTPS, or an approved server’s own origin
network_private_address A listed host or public server must resolve to public IPv4 addresses, and localhost only to loopback addresses
network_response_too_large / network_response_not_text / network_encoding_unsupported The server must answer with uncompressed UTF-8 text of at most 256 KiB
network_timeout / network_failed / network_limit Try again later, with fewer requests in flight
network_unreachable Nothing is listening at the address; ask the user to start their server
network_dns_failed / network_connection_closed / network_tls_failed The name wasn’t found, the server hung up before answering, or the secure connection failed; check the address, then try again
network_cancelled / plugin_changed The request’s signal was aborted, the plugin stopped, or its code changed; ignore the result
attachment_context_expired / attachment_context_unavailable Activate the posted-file menu again
attachment_not_a_file The right-clicked image or GIF is embedded from a link, not a posted file, so there is nothing to resolve
stickers_busy / attachment_context_used / sticker_needs_image Another Add sticker dialog is open, this right-click already opened one, or the context is a file card; ask the user to right-click an image or GIF again
attachment_lookup_busy Avoid concurrent lookups for the same service instance
interaction_required Request another real user activation
storage_quota_exceeded Remove stored data; each plugin may store up to 1 MiB, and 32 secrets
invalid_secret Store 1 to 4096 characters, without line breaks or other control characters
invalid_shortcut Use Ctrl, Shift, Alt or Meta plus a key, with at least one of Ctrl, Alt or Meta; F1 to F12 and Escape work on their own
user_gesture_required Send, copy, read recent messages or ask for a server straight after a user action in the plugin’s UI
external_open_failed Explain the failure and allow a fresh user-initiated attempt
badge_provider_exists Dispose the current provider before registering another
badges_unavailable The runtime can’t show badges on this page; skip the feature
guild_not_open Only ask about the open community or ones opened this session
guild_data_unavailable / guild_data_timeout Fluxer didn’t answer usefully; try again later or skip the feature
guild_data_rate_limited / guild_data_busy Wait for earlier requests; FluxPlugs caches answers for 10 minutes
context_menu_unavailable / decorations_unavailable The runtime can’t draw this on the page; skip the feature
decoration_provider_exists Dispose the current provider before registering another
emoji_picker_unavailable / emoji_picker_busy Open a channel in Fluxer, or wait for the open picker to close
emoji_data_unavailable / emoji_unreadable FluxPlugs couldn’t tell which unicode emoji was picked; let the user type it instead
composer_unavailable / composer_insert_failed No message box is open, or it refused the text; tell the user
settings_page_exists Dispose the current settings page before registering another
view_busy The frame is showing the plugin’s settings page; open the view after the user leaves it
view_not_open Open a view before setting its buttons
voice_unavailable The runtime can’t read the voice connection on this page; skip the feature
message_not_found / message_not_actionable Reply or react only to messages shown in the open channel, not pending, failed or system ones
message_rate_limited[:seconds] / message_send_failed:<status> / reaction_failed:<status> Fluxer refused; wait before trying again, or explain the failure
automation_own_message / automation_message_too_old / automation_repeated / automation_rate_limited Automated replies and reactions are limited to other people’s new messages, once each, within core’s rate limits
channel_unavailable / message_history_busy Open a conversation, or wait for the plugin’s previous messages.recent call
message_history_failed[:status] / message_history_timeout Fluxer didn’t return the messages; try again later
command_name_reserved / command_name_taken Pick another name: Fluxer’s own commands, and ones another plugin registered first, are taken
commands_unavailable The runtime can’t watch the message box on this page; skip the feature
invalid_server_origin / server_request_busy / server_request_declined / server_limit Ask for an origin the rules allow, one at a time; wait 30 seconds after the user declines; a plugin may have 8 approved servers
unknown_patch_hook:<hook> Use one of the named hooks

Errors from individual host operations may be more specific. Avoid treating every rejection as a retryable network failure.

Resource Current bound
Plugin executable 2 MiB, single bundled entry
ZIP import 128 entries; 8 MiB compressed/total declared expanded content; 256 KiB manifest; 15-second deadline
ZIP compression Stored or Deflate
Native dialog 12 sections; 32 controls per section; up to 25 repeat rows
Image request 8 seconds; 1 MiB; 3 redirects
Image dimensions 2048 per dimension and 1,048,576 total pixels
Images per instance 8 simultaneous/retained resources
Network hosts 0 to 16 per manifest (0 only with userServers); 8 approved servers per plugin
Network request 10 seconds, or timeoutMs of 1 to 120 seconds; 8 KiB URL; 16 headers; 256 KiB body (POST only); 256 KiB text reply; 3 redirects
Network requests in flight 4 per instance; 32 plugin instances at once
Clipboard text 32,768 characters
Plugin storage 1 MiB of JSON per plugin; 32 secrets of up to 4096 characters each
Registrations per instance 64 for styles, shortcuts, subscriptions, menu items, the settings page and the decoration provider, plus a separate 64 for attachment actions, the badge provider and patches; 32 posted-file actions; panels share 64 per window across plugins
Right-click menu items 16 per instance
Message box text 4000 characters, no control characters except line breaks and tabs
Route changes Noticed within 250 ms; only the newest waiting route is delivered
Idle time 60 to 3600 seconds per call or subscription, default 300
Settings page 1 per instance; title of 1 to 40 characters
Community data Communities opened this session (last 20); 10-second fetch; 10-minute cache; 4 requests at once per instance
Decoration provider 1 per instance; batches of 25 places; 1-second answer; 2 batches waiting; 2 KiB of blocks per place
Decoration blocks 8 below a message (2 images, 4 buttons or links); 3 text or badge blocks next to a name
Message text 4000 characters per message, with message_content
Recent messages 1 to 100 per call (default 50), one call at a time; 10-second answer
Commands 32 per plugin, 128 in all; names of up to 32 characters, descriptions of up to 100, usage of up to 60; input of up to 4000 characters
View buttons 4 per view; labels of 1 to 40 characters
badges.merge Reorder or drop only; 6 badges
Attachment metadata 10 seconds; 1 MiB; 100 attachments
Attachment context 5 minutes maximum, invalidated earlier by relevant state changes
External navigation authorization 2 minutes, single-use
Named patch handler 1-second default timeout
Role badge provider 1 per instance; 1-second answer; 250 badges; labels of 1 to 12 characters; 1 to 5 badges per person
Replies 1 to 2000 characters; mentions in the text never ping
Automated replies and reactions Other people’s messages from the last 2 minutes; once per message (reply) or emoji (reaction); 1 every 3 seconds, 10 a minute, 3 a minute per channel
Embed fields 25

Further schema and JSON budgets apply. Validation occurs at multiple boundaries, so a well-typed TypeScript value can still be rejected.

Catch errors inside asynchronous actions, show a concise next step, and leave cancellation without side effects. Free resources when leaving a feature, not only at shutdown. Guard pending work with instance lifetime checks.

Testing and debugging describes exercising these failure paths.

FluxPlugs is an independent project, not affiliated with or endorsed by Fluxer.