Skip to content
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

Error using pterodactyl #62

Closed
miguelkix30 opened this issue Jun 29, 2022 · 1 comment
Closed

Error using pterodactyl #62

miguelkix30 opened this issue Jun 29, 2022 · 1 comment

Comments

@miguelkix30
Copy link

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>
@staciax
Copy link
Owner

staciax commented Jun 29, 2022

#57

I don't know how to explain Because everyone uses the internet differently.

@staciax staciax closed this as completed Jul 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants