Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bot crashes whenever it receives an emoji as reaction #2422

Closed
3 tasks done
shavitush opened this issue Nov 18, 2019 · 8 comments
Closed
3 tasks done

Bot crashes whenever it receives an emoji as reaction #2422

shavitush opened this issue Nov 18, 2019 · 8 comments

Comments

@shavitush
Copy link

Summary

The bot crashes whenever it receives an emoji as reaction.

Reproduction Steps

Simply reacted to it with an 👀 emoji in a DM

https://streamable.com/z4jbv

Expected Results

The bot to not crash..?

Actual Results

From what it seems, the traceback doesn't really show anything from my code so it's likely from the library itself

Traceback (most recent call last):
  File "main.py", line 363, in <module>
    client.run(config.get("discord", "token"))
  File "/home/shavit/.local/lib/python3.7/site-packages/discord/client.py", line 598, in run
    return future.result()
  File "/home/shavit/.local/lib/python3.7/site-packages/discord/client.py", line 579, in runner
    await self.start(*args, **kwargs)
  File "/home/shavit/.local/lib/python3.7/site-packages/discord/client.py", line 543, in start
    await self.connect(reconnect=reconnect)
  File "/home/shavit/.local/lib/python3.7/site-packages/discord/client.py", line 457, in connect
    await self._connect()
  File "/home/shavit/.local/lib/python3.7/site-packages/discord/client.py", line 421, in _connect
    await self.ws.poll_event()
  File "/home/shavit/.local/lib/python3.7/site-packages/discord/gateway.py", line 469, in poll_event
    await self.received_message(msg)
  File "/home/shavit/.local/lib/python3.7/site-packages/discord/gateway.py", line 423, in received_message
    func(data)
  File "/home/shavit/.local/lib/python3.7/site-packages/discord/state.py", line 435, in parse_message_reaction_remove
    emoji = PartialEmoji.with_state(self, animated=emoji_data['animated'], id=emoji_id, name=emoji_data['name'])
KeyError: 'animated'

Checklist

  • I have searched the open issues for duplicates.
  • I have shown the entire traceback, if possible.
  • I have removed my token from display, if visible.

System Information

shavit@windia:~/discord$ python3 -m discord -v
- Python v3.7.3-final
- discord.py v1.2.4-final
- aiohttp v3.5.4
- websockets v6.0
- system info: Linux 5.0.0-25-generic #26-Ubuntu SMP Thu Aug 1 12:04:58 UTC 2019
@Harmon758
Copy link
Contributor

This should now be fixed with v1.2.5.
In the future, please make sure you're using the latest development version when reporting issues.

@vr6syncro
Copy link

Hey, updated my discord.py but bot still crash:

`Traceback (most recent call last):
File "voicecreate.py", line 39, in
bot.run(DISCORD_TOKEN)
File "/usr/local/lib/python3.7/site-packages/discord/client.py", line 598, in run
return future.result()
File "/usr/local/lib/python3.7/site-packages/discord/client.py", line 579, in runner
await self.start(*args, **kwargs)
File "/usr/local/lib/python3.7/site-packages/discord/client.py", line 543, in start
await self.connect(reconnect=reconnect)
File "/usr/local/lib/python3.7/site-packages/discord/client.py", line 457, in connect
await self._connect()
File "/usr/local/lib/python3.7/site-packages/discord/client.py", line 421, in _connect
await self.ws.poll_event()
File "/usr/local/lib/python3.7/site-packages/discord/gateway.py", line 469, in poll_event
await self.received_message(msg)
File "/usr/local/lib/python3.7/site-packages/discord/gateway.py", line 423, in received_message
func(data)
File "/usr/local/lib/python3.7/site-packages/discord/state.py", line 407, in parse_message_reaction_add
emoji = PartialEmoji.with_state(self, animated=emoji_data['animated'], id=emoji_id, name=emoji_data['name'])
KeyError: 'animated'
root@Squad:/home/alex/VoiceCreateBot# python3 -m discord -v

@Zomatree
Copy link
Contributor

Zomatree commented Nov 20, 2019

@vr6syncro your bot is not running on discord.py 1.2.5 please make sure you install discord.py and run the bot on the same python version. further more please dont necrobump issues, please ask for help in discord.gg/dpy

@AdriRayns
Copy link

I can confirm that it is fixed. I was getting erros in 1.2.4 until I upgraded to 1.2.5 discord.py version.

@avayert avayert mentioned this issue Nov 22, 2019
3 tasks
Kab1r added a commit to Kab1r/AnimeKiller that referenced this issue Nov 26, 2019
carlzoo pushed a commit to carlzoo/scalperr-discord-bot that referenced this issue Nov 27, 2019
Gillingham added a commit to Gillingham/pollmaster that referenced this issue Dec 6, 2019
@Zomatree Zomatree mentioned this issue Dec 13, 2019
3 tasks
jimchen5209 added a commit to jimchen5209/Discord-Voice-log that referenced this issue Dec 22, 2019
jimchen5209 added a commit to jimchen5209/fx_and_record_discord_bot that referenced this issue Dec 22, 2019
@Indiana3714
Copy link

1.2.5 has this issue still

@Indiana3714
Copy link

Even the latest git version of discord.py-1.3.0a2204+g87f9dcf still crashes. The problem is NOT fixed at all unlike what is claimed

@skyblockz
Copy link

Even the latest git version of discord.py-1.3.0a2204+g87f9dcf still crashes. The problem is NOT fixed at all unlike what is claimed

Post the logs instead of blaming

@Rapptz
Copy link
Owner

Rapptz commented Jan 18, 2020

This issue is definitely fixed -- otherwise I'd be seeing more people complaining about it. Chances are you have an environment issue somewhere such as using mixed interpreters and virtual environments. Double check them to make sure.

Repository owner locked as resolved and limited conversation to collaborators Jan 18, 2020
@Rapptz Rapptz unpinned this issue Oct 14, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants