Skip to content

Cannot send empty message #37

@Harry989

Description

@Harry989

I'm having some issues with trying to generate responses, more often than not I get an error like this. I first assumed it was due to my VRAM usage basically topping out. But switching to Pyg2.7B did not alleviate this issue in the slightest. Any idea how to solve this issue?

[2023-09-11 19:53:28] [ERROR   ] discord.client: Ignoring exception in on_message
Traceback (most recent call last):
  File "C:\Users\harry\Desktop\PygDiscordBot-main\venv\lib\site-packages\discord\client.py", line 441, in _run_event
    await coro(*args, **kwargs)
  File "C:\Users\harry\Desktop\PygDiscordBot-main\cogs\messagehandler.py", line 64, in on_message
    await message.channel.send(response)
  File "C:\Users\harry\Desktop\PygDiscordBot-main\venv\lib\site-packages\discord\abc.py", line 1561, in send
    data = await state.http.send_message(channel.id, params=params)
  File "C:\Users\harry\Desktop\PygDiscordBot-main\venv\lib\site-packages\discord\http.py", line 745, in request
    raise HTTPException(response, data)
discord.errors.HTTPException: 400 Bad Request (error code: 50006): Cannot send an empty message```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions