The document shows a traceback from an error that occurred when trying to execute a SQL query. The error was caused by attempting to bind an invalid data type (FutureTime) to a query parameter where a datetime was expected. This led to an asyncpg DataError being raised when encoding the bind message for the prepared statement.
The document shows a traceback from an error that occurred when trying to execute a SQL query. The error was caused by attempting to bind an invalid data type (FutureTime) to a query parameter where a datetime was expected. This led to an asyncpg DataError being raised when encoding the bind message for the prepared statement.
The document shows a traceback from an error that occurred when trying to execute a SQL query. The error was caused by attempting to bind an invalid data type (FutureTime) to a query parameter where a datetime was expected. This led to an asyncpg DataError being raised when encoding the bind message for the prepared statement.
File "asyncpg\protocol\prepared_stmt.pyx", line 146, in
asyncpg.protocol.protocol.PreparedStatementState._encode_bind_msg File "asyncpg\protocol\codecs/base.pyx", line 192, in asyncpg.protocol.protocol.Codec.encode File "asyncpg\protocol\codecs/base.pyx", line 103, in asyncpg.protocol.protocol.Codec.encode_scalar File "asyncpg\pgproto\./codecs/datetime.pyx", line 147, in asyncpg.pgproto.pgproto.timestamp_encode TypeError: expected a datetime.date or datetime.datetime instance, got 'FutureTime'
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site- packages\discord\ext\commands\core.py", line 85, in wrapped ret = await coro(*args, **kwargs) File "C:\Users\User\Desktop\dredd v3\cogs\moderation.py", line 470, in mute await default.execute_temporary(ctx, 1, member, ctx.author, ctx.guild, muterole, duration, reason) File "C:\Users\User\Desktop\dredd v3\utils\default.py", line 322, in execute_temporary await ctx.bot.db.execute("INSERT INTO modactions(time, user_id, action, guild_id, mod_id, role_id, reason) VALUES($1, $2, $3, $4, $5, $6, $7)", duration if duration is not None else duration.dt, user.id, action, guild.id, mod.id, role.id, reason) File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site- packages\asyncpg\pool.py", line 518, in execute return await con.execute(query, *args, timeout=timeout) File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site- packages\asyncpg\connection.py", line 274, in execute _, status, _ = await self._execute(query, args, 0, timeout, True) File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site- packages\asyncpg\connection.py", line 1402, in _execute result, _ = await self.__execute( File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site- packages\asyncpg\connection.py", line 1411, in __execute return await self._do_execute(query, executor, timeout) File "C:\Users\User\AppData\Local\Programs\Python\Python38-32\lib\site- packages\asyncpg\connection.py", line 1433, in _do_execute result = await executor(stmt, None) File "asyncpg\protocol\protocol.pyx", line 178, in bind_execute File "asyncpg\protocol\prepared_stmt.pyx", line 160, in asyncpg.protocol.protocol.PreparedStatementState._encode_bind_msg asyncpg.exceptions.DataError: invalid input for query argument $1: <utils.btime.FutureTime object at 0x0577... (expected a datetime.date or datetime.datetime instance, got 'FutureTime')
Kali Linux - An Ethical Hacker's Cookbook - Second Edition: Practical recipes that combine strategies, attacks, and tools for advanced penetration testing, 2nd Edition
Java Professional Interview Guide: Learn About Java Interview Questions and Practise Answering About Concurrency, JDBC, Exception Handling, Spring, and Hibernate
React.js for A Beginners Guide : From Basics to Advanced - A Comprehensive Guide to Effortless Web Development for Beginners, Intermediates, and Experts
Windows Server 2019 Administration Fundamentals - Second Edition: A beginner's guide to managing and administering Windows Server environments, 2nd Edition
The Apple Watch Ultra 2 And Series 9 Update: Your Rich Book to the complete Mastery of Apple Watch Ultra 2 and Series 9 with WatchOS 10, Tips, Tricks, Features, and Pictures