Discordopole icon indicating copy to clipboard operation
Discordopole copied to clipboard

Error with some Pokémon second dB call

Open gopeine opened this issue 5 years ago • 0 comments

With some Pokémon or after a few attempts in short time, I getting every time this error, all modules are up to date!

requested Wingull stats for area Alle using alt table, because starttime older than oldest mon. starttime: 2020-06-14 05:03:33, oldest mon: 2020-06-29 05:02:47

Task was destroyed but it is pending! task: <ClientEventTask state=pending event=on_message coro=<bound method BotBase.on_message of <discord.ext.commands.bot.Bot object at 0x7fbd873704c0>>> Ignoring exception in command pokemon: Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/aiomysql/connection.py", line 598, in _read_bytes data = await self._reader.readexactly(num_bytes) GeneratorExit

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/discord/ext/commands/core.py", line 83, in wrapped ret = await coro(*args, **kwargs) File "discordopole.py", line 198, in pokemon alt_shiny_count = await queries.get_shiny_count(mon.id, area[0], alt_timespan[0], alt_timespan[1], bot.config, use_alt_table=True) File "/home/..../Discordopole/util/queries.py", line 59, in get_shiny_count await cursor_shiny_count.execute(query_shiny_count) File "/usr/local/lib/python3.8/dist-packages/aiomysql/cursors.py", line 239, in execute await self._query(query) File "/usr/local/lib/python3.8/dist-packages/aiomysql/cursors.py", line 457, in _query await conn.query(q) File "/usr/local/lib/python3.8/dist-packages/aiomysql/connection.py", line 428, in query await self._read_query_result(unbuffered=unbuffered) File "/usr/local/lib/python3.8/dist-packages/aiomysql/connection.py", line 622, in _read_query_result await result.read() File "/usr/local/lib/python3.8/dist-packages/aiomysql/connection.py", line 1105, in read first_packet = await self.connection._read_packet() File "/usr/local/lib/python3.8/dist-packages/aiomysql/connection.py", line 561, in _read_packet packet_header = await self._read_bytes(4) File "/usr/local/lib/python3.8/dist-packages/aiomysql/connection.py", line 599, in _read_bytes except asyncio.streams.IncompleteReadError as e: AttributeError: module 'asyncio.streams' has no attribute 'IncompleteReadError'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/local/lib/python3.8/dist-packages/discord/ext/commands/bot.py", line 892, in invoke await ctx.command.invoke(ctx) File "/usr/local/lib/python3.8/dist-packages/discord/ext/commands/core.py", line 797, in invoke await injected(*ctx.args, **ctx.kwargs) File "/usr/local/lib/python3.8/dist-packages/discord/ext/commands/core.py", line 92, in wrapped raise CommandInvokeError(exc) from exc discord.ext.commands.errors.CommandInvokeError: Command raised an exception: AttributeError: module 'asyncio.streams' has no attribute 'IncompleteReadError'

gopeine avatar Jul 05 '20 18:07 gopeine