PennyDreadfulMTG / perf-reports

2 stars 2 forks source link

Bot error on_message #42438

Closed vorpal-buildbot closed 5 years ago

vorpal-buildbot commented 5 years ago

(<Message id=524248871820591125 pinned=False author=<Member id=303878624505888771 name='zwei' discriminator='8969' bot=False nick=None guild=>>,) {} ['[Super-Duper Death Ray]']

Reported on discordbot by discord user


ValueError I/O operation on closed file Stack Trace:

  File "run.py", line 120, in <module>
    run()
  File "run.py", line 17, in run
    bot.init()
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/bot.py", line 204, in init
    client.init()
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/bot.py", line 32, in init
    self.run(configuration.get('token'))
  File "/home/discord/.local/lib/python3.6/site-packages/discord/client.py", line 563, in run
    loop.run_forever()
  File "/usr/lib64/python3.6/asyncio/base_events.py", line 422, in run_forever
    self._run_once()
  File "/usr/lib64/python3.6/asyncio/base_events.py", line 1432, in _run_once
    handle._run()
  File "/usr/lib64/python3.6/asyncio/events.py", line 145, in _run
    self._callback(*self._args)
  File "/home/discord/.local/lib/python3.6/site-packages/discord/client.py", line 221, in _run_event
    await coro(*args, **kwargs)
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/bot.py", line 48, in on_message
    await command.respond_to_card_names(message, self)
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/command.py", line 58, in respond_to_card_names
    await post_cards(client, cards, message.channel, message.author)
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/command.py", line 908, in post_cards
    await send_image_with_retry(channel, image_file, text)
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/command.py", line 919, in send_image_with_retry
    message = await send(channel, file=File(image_file), content=text)
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/command.py", line 873, in send
    return await channel.send(file=file, content=new_s)
  File "/home/discord/.local/lib/python3.6/site-packages/discord/abc.py", line 745, in send
    content=content, tts=tts, embed=embed, nonce=nonce)
  File "/home/discord/.local/lib/python3.6/site-packages/discord/http.py", line 153, in request
    async with self._session.request(method, url, **kwargs) as r:
  File "/home/discord/.local/lib/python3.6/site-packages/aiohttp/client.py", line 843, in __aenter__
    self._resp = await self._coro
  File "/home/discord/.local/lib/python3.6/site-packages/aiohttp/client.py", line 357, in _request
    ssl=ssl, proxy_headers=proxy_headers, traces=traces)
  File "/home/discord/.local/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 231, in __init__
    self.update_body_from_data(data)
  File "/home/discord/.local/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 403, in update_body_from_data
    body = body()
  File "/home/discord/.local/lib/python3.6/site-packages/aiohttp/formdata.py", line 141, in __call__
    return self._gen_form_data()
  File "/home/discord/.local/lib/python3.6/site-packages/aiohttp/formdata.py", line 135, in _gen_form_data
    self._writer.append_payload(part)
  File "/home/discord/.local/lib/python3.6/site-packages/aiohttp/multipart.py", line 745, in append_payload
    size = payload.size
  File "/home/discord/.local/lib/python3.6/site-packages/aiohttp/payload.py", line 284, in size
    return os.fstat(self._value.fileno()).st_size - self._value.tell()

Exception_hash: a6774dcd8c9549545bc37fc4b4cb2a5ec6c95258

vorpal-buildbot commented 5 years ago

Bot error on_message

(<Message id=534719859196690433 pinned=False author=<Member id=379195566858698752 name='kirigilis' discriminator='7615' bot=False nick=None guild=>>,) {} ['[Insidious Will]\nこれこれ']

Reported on discordbot by discord user


ValueError I/O operation on closed file Stack Trace:

  File "run.py", line 120, in <module>
    run()
  File "run.py", line 17, in run
    bot.init()
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/bot.py", line 204, in init
    client.init()
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/bot.py", line 32, in init
    self.run(configuration.get('token'))
  File "/home/discord/.local/lib/python3.6/site-packages/discord/client.py", line 563, in run
    loop.run_forever()
  File "/usr/lib64/python3.6/asyncio/base_events.py", line 422, in run_forever
    self._run_once()
  File "/usr/lib64/python3.6/asyncio/base_events.py", line 1432, in _run_once
    handle._run()
  File "/usr/lib64/python3.6/asyncio/events.py", line 145, in _run
    self._callback(*self._args)
  File "/home/discord/.local/lib/python3.6/site-packages/discord/client.py", line 221, in _run_event
    await coro(*args, **kwargs)
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/bot.py", line 48, in on_message
    await command.respond_to_card_names(message, self)
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/command.py", line 58, in respond_to_card_names
    await post_cards(client, cards, message.channel, message.author)
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/command.py", line 908, in post_cards
    await send_image_with_retry(channel, image_file, text)
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/command.py", line 919, in send_image_with_retry
    message = await send(channel, file=File(image_file), content=text)
  File "/home/discord/Penny-Dreadful-Discord-Bot/discordbot/command.py", line 873, in send
    return await channel.send(file=file, content=new_s)
  File "/home/discord/.local/lib/python3.6/site-packages/discord/abc.py", line 745, in send
    content=content, tts=tts, embed=embed, nonce=nonce)
  File "/home/discord/.local/lib/python3.6/site-packages/discord/http.py", line 153, in request
    async with self._session.request(method, url, **kwargs) as r:
  File "/home/discord/.local/lib/python3.6/site-packages/aiohttp/client.py", line 843, in __aenter__
    self._resp = await self._coro
  File "/home/discord/.local/lib/python3.6/site-packages/aiohttp/client.py", line 357, in _request
    ssl=ssl, proxy_headers=proxy_headers, traces=traces)
  File "/home/discord/.local/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 231, in __init__
    self.update_body_from_data(data)
  File "/home/discord/.local/lib/python3.6/site-packages/aiohttp/client_reqrep.py", line 403, in update_body_from_data
    body = body()
  File "/home/discord/.local/lib/python3.6/site-packages/aiohttp/formdata.py", line 141, in __call__
    return self._gen_form_data()
  File "/home/discord/.local/lib/python3.6/site-packages/aiohttp/formdata.py", line 135, in _gen_form_data
    self._writer.append_payload(part)
  File "/home/discord/.local/lib/python3.6/site-packages/aiohttp/multipart.py", line 745, in append_payload
    size = payload.size
  File "/home/discord/.local/lib/python3.6/site-packages/aiohttp/payload.py", line 284, in size
    return os.fstat(self._value.fileno()).st_size - self._value.tell()

Exception_hash: a6774dcd8c9549545bc37fc4b4cb2a5ec6c95258

Labels: discordbot; ValueError