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

Unhandled exception in snekbox during eval #264

Closed
SebastiaanZ opened this Issue Jan 9, 2019 · 2 comments

Comments

Projects
None yet
1 participant
@SebastiaanZ
Copy link
Member

SebastiaanZ commented Jan 9, 2019

Evaling this code with !eval lead to an unhandled exception in snekbox and makes the bot nonreactive for a short period of time:

print(True == 1)
print(False == 0)
print(True == 2)
print(False == 10)

The log messages I'm getting in my dev bot are below. **Note: ** The asyncio error/http internal server error may or may not be related, but keep repeating after the eval failed.

Jan 09 20:53:49 pd.beardfist.com Bot: |               bot.cogs.snekbox |    ERROR | Unhandled error in snekbox eval: Command raised an exception: AttributeError: 'str' object has no attribute 'ack' ('str' object has no attribute 'ack')
Jan 09 20:54:26 pd.beardfist.com Bot: |                bot.cogs.events |    DEBUG | Command eval has a local error handler, ignoring.
Jan 09 20:55:28 pd.beardfist.com Bot: |                        asyncio |    ERROR | Task exception was never retrieved
future: <Task finished coro=<Message.add_reaction() done, defined at /home/sebastiaan/.local/share/virtualenvs/bot-05f_83Kn/src/discord-py/discord/message.py:650> exception=HTTPException('INTERNAL SERVER ERROR (status code: 500): 500: Internal Server Error',)>
Traceback (most recent call last):
  File "/home/sebastiaan/.local/share/virtualenvs/bot-05f_83Kn/src/discord-py/discord/message.py", line 679, in add_reaction
    await self._state.http.add_reaction(self.id, self.channel.id, emoji)
  File "/home/sebastiaan/.local/share/virtualenvs/bot-05f_83Kn/src/discord-py/discord/http.py", line 216, in request
    raise HTTPException(r, data)
discord.errors.HTTPException: INTERNAL SERVER ERROR (status code: 500): 500: Internal Server Error

@SebastiaanZ SebastiaanZ added the bug label Jan 9, 2019

@SebastiaanZ

This comment has been minimized.

Copy link
Member

SebastiaanZ commented Jan 9, 2019

Update: All evals are suddenly breaking. The internal server errors are probably a problem with Discord.

@SebastiaanZ

This comment has been minimized.

Copy link
Member

SebastiaanZ commented Jan 9, 2019

Looks like it was related to the Discord outage. I don't know why, though.

I'm closing this for now.

@SebastiaanZ SebastiaanZ closed this Jan 9, 2019

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment