Skip to content

RestAction queue returned failure: [ErrorResponseException] 10008: Unknown Message #2969

@rcbandit111

Description

@rcbandit111

General Troubleshooting

  • I have checked for similar issues on the Issue-tracker.
  • I have checked for PRs that might already address this issue.

Version of JDA

6.1.2

Expected Behaviour

I'm trying to sent messages from AWS Lambda but I get from time to time this error:

<html>
<body>
<!--StartFragment-->
2025-12-04T15:56:39.405Z2025-12-04T15:56:39.404Z ERROR 2 --- [onPool-worker-1] n.dv8tion.jda.api.requests.RestAction    : RestAction queue returned failure: [ErrorResponseException] 10008: Unknown Message | 2025-12-04T15:56:39.404Z ERROR 2 --- [onPool-worker-1] n.dv8tion.jda.api.requests.RestAction : RestAction queue returned failure: [ErrorResponseException] 10008: Unknown Message
-- | --
  | 2025-12-04T15:56:39.405Znet.dv8tion.jda.api.exceptions.ContextException: null | net.dv8tion.jda.api.exceptions.ContextException: null
  | 2025-12-04T15:56:39.405Zat net.dv8tion.jda.api.exceptions.ContextException.here(ContextException.java:52) ~[JDA-6.1.2.jar:6.1.2] | at net.dv8tion.jda.api.exceptions.ContextException.here(ContextException.java:52) ~[JDA-6.1.2.jar:6.1.2]
  | 2025-12-04T15:56:39.405Zat net.dv8tion.jda.api.requests.Request.<init>(Request.java:85) ~[JDA-6.1.2.jar:6.1.2] | at net.dv8tion.jda.api.requests.Request.<init>(Request.java:85) ~[JDA-6.1.2.jar:6.1.2]
  | 2025-12-04T15:56:39.405Z | at net.dv8tion.jda.internal.requests.RestActionImpl.queue(RestActionImpl.java:199) ~[JDA-6.1.2.jar:6.1.2]

<!--EndFragment-->
</body>
</html>

Looks like this is a Discord API limitation. Can you advise for some solution, please?

Code Example for Reproduction Steps

JDA api = JDABuilder.createDefault(token, intents)
                    .setStatus(OnlineStatus.ONLINE)
                    .setActivity(Activity.playing("Reporting Service"))
                    .build().awaitReady();

            TextChannel channel = api.getTextChannelById(channelId);

            if (channel != null) {
                channel.sendMessage("Test message from BE\n example message 1 \n example message 2 \n" + signUpDTO.getEmail()).queue();
            } else {
                System.out.println("Channel not found!");
            }

Code for JDABuilder or DefaultShardManagerBuilder used

JDA api = JDABuilder.createDefault(token, intents)
                    .setStatus(OnlineStatus.ONLINE)
                    .setActivity(Activity.playing("Reporting Service"))
                    .build().awaitReady();

            TextChannel channel = api.getTextChannelById(channelId);

            if (channel != null) {
                channel.sendMessage("Test message from BE\n example message 1 \n example message 2 \n" + signUpDTO.getEmail()).queue();
            } else {
                System.out.println("Channel not found!");
            }

Exception or Error


Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions