Skip to content

EN Troubleshooting

Andrewkydev edited this page Aug 25, 2026 · 2 revisions

Troubleshooting

Русский: RU-Troubleshooting

Commands are not handled

  • Register routes before Start.
  • Use / by default; for !help, set CommandPrefixes("/", "!").
  • On Discord, enable the Message Content Intent for text commands or use slash commands.

Fallback is not called

Fallback is used only when there are no Message handlers. For a catch-all route, keep a single Message handler.

/cancel does not work inside a scene

An active state.FSM intercepts the event before the router. Handle cancellation through ctx.Input() inside the scene.

The scene disappears after a restart

storage/memory is ephemeral. Connect PostgreSQL, call EnsureSchema, and use its Sessions repository.

A callback keeps loading forever

Call ctx.AnswerCallback(...). Create callback routes with payload.New(...).

Edit sent a new message

This is the portable fallback only when the adapter reports platform.ErrEditUnavailable. Operational edit errors are returned and do not trigger Send. Use ctx.CanEdit() or a native adapter API when you need platform-specific behavior.

A private message was not sent

Event.UserID and PrivateMessenger are required. The method deliberately does not fall back to the public chat.

platform is not registered

Event.Platform must match Platform.Name(), and the adapter must be added before dispatch/start.

app is already running

An App cannot run concurrently. Cancel the context of the first Start call.

VK does not start

With VK_TOKEN, you also need a positive VK_GROUP_ID, Community Long Poll, and the correct token permissions.

Discord slash commands are missing

Pass command definitions in discord.Config.Commands. GuildID speeds up development registration; global commands do not propagate immediately.

PostgreSQL: relation does not exist

postgres.New does not create the schema. Call EnsureSchema.

An adapter keeps restarting

The runtime retries startup with a 1–30 second backoff. The cause is in the platform stopped, retrying log entry.

No incoming events

Adapters subscribe only to event types required by registered routes. Add the necessary On, Command, Callback, Message, or Fallback route before Start.

Clone this wiki locally