Skip to content

[Bug] Error executing command opencode: DiscordAPIError[10062]: Unknown interaction #21

@Zhaoyilunnn

Description

@Zhaoyilunnn

Describe the Bug

First of all, thanks for building this awesome project!

When the discord bot fails to acknowledge or respond to a slash command within the mandatory 3-second timeframe, this error occurs.

Error executing command opencode: DiscordAPIError[10062]: Unknown interaction
xxxxxx

Steps to Reproduce

  1. Run '...'
  2. Send command '...'
  3. See error

Expected Behavior

Allow the bot to take a long time to respond, I did some research, seems that we can use interaction.deferReply()

While my network is slow due to the use of proxy, I think this error can also happen if the context length is long and it may take a long time for the underlying LLM to output the first token

Actual Behavior

What actually happened.

Environment

  • OS: [e.g., macOS 14.0, Windows 11, Ubuntu 22.04]
  • Node.js version: [e.g., 22.0.0]
  • remote-opencode version: [e.g., 1.1.0]
  • OpenCode version: [e.g., 0.1.0]

Logs / Screenshots

If applicable, add logs or screenshots to help explain your problem.

Paste any relevant error messages here

Additional Context

Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions