You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Task exception was never retrieved
future: <Task finished name='CommandTree-invoker' coro=<CommandTree._from_interaction.<locals>.wrapper() done, defined at /home/container/.local/lib/python3.8/site-packages/discord/app_commands/tree.py:996> exception=TypeError('Subscripted generics cannot be used with class and instance checks')>
Traceback (most recent call last):
File "/home/container/.local/lib/python3.8/site-packages/discord/app_commands/commands.py", line 655, in _do_call
return await self._callback(self.binding, interaction, **params) # type: ignore
File "/home/container/cogs/valorant.py", line 91, in login
authenticate = await auth.authenticate(username, password)
File "/home/container/utils/valorant/auth.py", line 122, in authenticate
data = await r.json()
File "/home/container/.local/lib/python3.8/site-packages/aiohttp/client_reqrep.py", line 1103, in json
raise ContentTypeError(
aiohttp.client_exceptions.ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('https://auth.riotgames.com/api/v1/authorization')
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/container/.local/lib/python3.8/site-packages/discord/app_commands/tree.py", line 1168, in call
await command._invoke_with_namespace(interaction, namespace)
File "/home/container/.local/lib/python3.8/site-packages/discord/app_commands/commands.py", line 681, in _invoke_with_namespace
return await self._do_call(interaction, transformed_values)
File "/home/container/.local/lib/python3.8/site-packages/discord/app_commands/commands.py", line 674, in _do_call
raise CommandInvokeError(self, e) from e
discord.app_commands.errors.CommandInvokeError: Command 'login' raised an exception: ContentTypeError: 0, message='Attempt to decode JSON with unexpected mimetype: text/html; charset=utf-8', url=URL('https://auth.riotgames.com/api/v1/authorization')
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/container/.local/lib/python3.8/site-packages/discord/app_commands/tree.py", line 998, in wrapper
await self.call(interaction)
File "/home/container/.local/lib/python3.8/site-packages/discord/app_commands/tree.py", line 1171, in call
await self.on_error(interaction, e)
File "/home/container/cogs/errors.py", line 47, in on_app_command_error
elif isinstance(error, Union[AppCommandNotFound, MissingPermissions, BotMissingPermissions]):
File "/usr/local/lib/python3.8/typing.py", line 769, in __instancecheck__
return self.__subclasscheck__(type(obj))
File "/usr/local/lib/python3.8/typing.py", line 777, in __subclasscheck__
raise TypeError("Subscripted generics cannot be used with"
TypeError: Subscripted generics cannot be used with class and instance checks
Unclosed client session
client_session: <utils.valorant.auth.ClientSession object at 0x7f131194ac70>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7f1311c3d9a0>, 229498.274342278)]']
connector: <aiohttp.connector.TCPConnector object at 0x7f131194a880>
The text was updated successfully, but these errors were encountered:
The text was updated successfully, but these errors were encountered: