modmail-dev / Modmail

A Discord bot that functions as a shared inbox between staff and members, similar to Reddit's Modmail.
https://docs.modmail.dev
GNU Affero General Public License v3.0
1.58k stars 4.59k forks source link

[BUG]: Replies not forwarded even after PR #3351

Open iiTranquility opened 2 months ago

iiTranquility commented 2 months ago

Bot Version

4.1.0

How are you hosting Modmail?

Heroku

Error Logs

N/A, doing the online @modmail (replacing username with own) doesn't give output

Screenshots

image image

Additional Information

It was recently updated by our owner, but this still isn't working. Please let me know what else I should do.

iiTranquility commented 2 months ago
File "/app/bot.py", line 1205, in on_typing
    await thread.channel.typing()
  File "/app/.heroku/python/lib/python3.10/site-packages/discord/context_managers.py", line 67, in wrapped_typer
    await channel._state.http.send_typing(channel.id)
  File "/app/.heroku/python/lib/python3.10/site-packages/discord/http.py", line 625, in request
    async with self.__session.request(method, url, **kwargs) as response:
  File "/app/.heroku/python/lib/python3.10/site-packages/aiohttp/client.py", line 1187, in __aenter__
    self._resp = await self._coro
  File "/app/.heroku/python/lib/python3.10/site-packages/aiohttp/client.py", line 601, in _request
    await resp.start(conn)
  File "/app/.heroku/python/lib/python3.10/site-packages/aiohttp/client_reqrep.py", line 965, in start
    message, payload = await protocol.read()  # type: ignore[union-attr]
  File "/app/.heroku/python/lib/python3.10/site-packages/aiohttp/streams.py", line 622, in read
    await self._waiter
aiohttp.client_exceptions.ClientOSError: [Errno 104] Connection reset by peer
2024-09-30 09:06:48 discord.gateway[566] - INFO: Shard ID None has successfully RESUMED session 243f72649c0c2c803661520815b01123.
2024-09-30 09:10:14 discord.gateway[566] - INFO: Shard ID None has successfully RESUMED session 243f72649c0c2c803661520815b01123.

Page 3 of debug logs

2024-09-30 04:31:42 discord.gateway[566] - INFO: Shard ID None has successfully RESUMED session 243f72649c0c2c803661520815b01123.
2024-09-30 06:56:43 discord.gateway[566] - INFO: Shard ID None has successfully RESUMED session 243f72649c0c2c803661520815b01123.
2024-09-30 07:41:24 discord.gateway[566] - INFO: Shard ID None has successfully RESUMED session 243f72649c0c2c803661520815b01123.
2024-09-30 08:31:35 discord.gateway[566] - INFO: Shard ID None has successfully RESUMED session 243f72649c0c2c803661520815b01123.
2024-09-30 08:32:01 __main__[1545] - WARNING: User iitranquility does not have permission to use this command: `debug hastebin` (OWNER).
2024-09-30 08:32:01 __main__[1551] - WARNING: CheckFailure: The check functions for command debug hastebin failed.
2024-09-30 08:32:05 __main__[1545] - WARNING: User iitranquility does not have permission to use this command: `debug hastebin` (OWNER).
2024-09-30 08:32:05 __main__[1551] - WARNING: CheckFailure: The check functions for command debug hastebin failed.
2024-09-30 08:32:15 __main__[1545] - WARNING: User iitranquility does not have permission to use this command: `debug` (OWNER).
2024-09-30 08:32:15 __main__[1551] - WARNING: CheckFailure: The check functions for command debug failed.
2024-09-30 08:37:06 discord.gateway[566] - INFO: Shard ID None has successfully RESUMED session 243f72649c0c2c803661520815b01123.
2024-09-30 08:50:38 discord.gateway[566] - INFO: Shard ID None has successfully RESUMED session 243f72649c0c2c803661520815b01123.
2024-09-30 08:56:50 discord.gateway[566] - INFO: Shard ID None has successfully RESUMED session 243f72649c0c2c803661520815b01123.
2024-09-30 09:06:47 __main__[1507] - ERROR: Ignoring exception in on_typing.
2024-09-30 09:06:47 __main__[1508] - ERROR: Unexpected exception:
Traceback (most recent call last):
  File "/app/.heroku/python/lib/python3.10/site-packages/discord/client.py", line 441, in _run_event
    await coro(*args, **kwargs)
Page 2
2024-09-30 03:36:46 core.models[324] - INFO: Discord logging level: INFO.
2024-09-30 03:36:46 __main__[165] - INFO: -------------------------
2024-09-30 03:36:46 __main__[166] - INFO: ┌┬┐┌─┐┌┬┐┌┬┐┌─┐┬┬
2024-09-30 03:36:46 __main__[167] - INFO: ││││ │ │││││├─┤││
2024-09-30 03:36:46 __main__[168] - INFO: ┴ ┴└─┘─┴┘┴ ┴┴ ┴┴┴─┘
2024-09-30 03:36:46 __main__[169] - INFO: v4.1.0
2024-09-30 03:36:46 __main__[170] - INFO: Authors: kyb3r, fourjr, Taaku18
2024-09-30 03:36:46 __main__[171] - INFO: -------------------------
2024-09-30 03:36:46 __main__[172] - INFO: discord.py: v2.3.2
2024-09-30 03:36:46 __main__[173] - INFO: -------------------------
2024-09-30 03:36:46 __main__[218] - INFO: Starting bot without presence intent.
2024-09-30 03:36:46 discord.client[603] - INFO: logging in using static token
2024-09-30 03:36:46 discord.gateway[561] - INFO: Shard ID None has connected to Gateway (Session ID: 243f72649c0c2c803661520815b01123).
2024-09-30 03:36:48 cogs.utility[629] - INFO: -------------------------
2024-09-30 03:36:48 cogs.utility[638] - INFO: Activity set to: Streaming DM for Support.
2024-09-30 03:36:48 cogs.utility[643] - INFO: Status set to: dnd.
2024-09-30 03:36:48 __main__[527] - INFO: -------------------------
2024-09-30 03:36:48 __main__[529] - INFO: Logged in as: PhoenixAC Support#2547
2024-09-30 03:36:48 __main__[530] - INFO: Bot ID: 799499251058737165
2024-09-30 03:36:48 __main__[534] - INFO: Owners: devoxi, element9, peloto
2024-09-30 03:36:48 __main__[535] - INFO: Prefix: !
2024-09-30 03:36:48 __main__[536] - INFO: Guild Name: phoenix-ac.com
2024-09-30 03:36:48 __main__[537] - INFO: Guild ID: 799493201387061259
2024-09-30 03:36:48 __main__[540] - INFO: -------------------------
2024-09-30 03:36:48 __main__[553] - INFO: There are 0 thread(s) pending to be closed.
2024-09-30 03:36:48 __main__[554] - INFO: -------------------------
2024-09-30 04:06:48 cogs.utility[648] - INFO: Starting presence loop.

Page 1

martinbndr commented 2 months ago

Replies not forwarded even after PR

Do you mean changes to the bot by the owner?

martinbndr commented 2 months ago

If so we so not provide support for our bot if the source code has been changed as it's no longer the original modmail bot.

iiTranquility commented 2 months ago

Nono the PR that fixes replies

Replies not forwarded even after PR

Do you mean changes to the bot by the owner?

https://github.com/modmail-dev/modmail/pull/3239

this one

martinbndr commented 2 months ago

Have you tried to restart the bot, so turning off the Dyno on heroku and turning it back on after a while? Can you try that and see if the issue persists.

iiTranquility commented 2 months ago

Yee it was recently updated and restarted etc. But replies aren't forwarded to the bot.

martinbndr commented 2 months ago

Wondering why we see the messages from the user sent in the screenshot in the bot embeds. Can you reproduce the issue and then use ?debug hastebin and send the link here.