Coder Social home page Coder Social logo

Comments (17)

doluk avatar doluk commented on June 26, 2024 2

Oh wait I think this time it could actually be not on your side. AFAIK there a currently some issues with the login in the game client too.

BTW thx for the fast response

from valorant-discordbot.

doluk avatar doluk commented on June 26, 2024 1

Okay the server issues seems to be fixed. At least I can login again in the game

from valorant-discordbot.

staciax avatar staciax commented on June 26, 2024

cloudflare updated about ssl 2 days ago

I try to fix it every day.

Some people can use it normally. Some people just can't use it.

from valorant-discordbot.

osu avatar osu commented on June 26, 2024

I also have the same issue, here is the error when trying to login, but instead of showing me an error on discord it just says that the application isn't available and it outputs me this in the console.

 BOT IS READY !
Version: 3.1.0-aiohttp
Task exception was never retrieved
future: <Task finished name='CommandTree-invoker' coro=<CommandTree._from_interaction.<locals>.wrapper()                                                   done, defined at /usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py:987> exception=TypeE                                                  rror('Subscripted generics cannot be used with class and instance checks')>
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/commands.py", line 649, in _do_call
    return await self._callback(self.binding, interaction, **params)  # type: ignore
  File "/home/mana/valorant/cogs/valorant.py", line 97, in login
    authenticate = await auth.authenticate(username, password)
  File "/home/mana/valorant/utils/valorant/auth.py", line 94, in authenticate
    data = await r.json()
  File "/usr/local/lib/python3.9/dist-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 "/usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py", line 1156, in call
    await command._invoke_with_namespace(interaction, namespace)
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/commands.py", line 675, in _invoke_wi                                                  th_namespace
    return await self._do_call(interaction, transformed_values)
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/commands.py", line 668, 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://au                                                  th.riotgames.com/api/v1/authorization')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py", line 989, in wrapper
    await self.call(interaction)
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py", line 1159, in call
    await self.on_error(interaction, e)
  File "/home/mana/valorant/cogs/errors.py", line 64, in on_app_command_error
    elif isinstance(error, Union[AppCommandNotFound, MissingPermissions, BotMissingPermissions]):
  File "/usr/lib/python3.9/typing.py", line 703, in __instancecheck__
    return self.__subclasscheck__(type(obj))
  File "/usr/lib/python3.9/typing.py", line 706, 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 0x7f86357eef40>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7f86358e7640>, 8266831.166564328)]']
connector: <aiohttp.connector.TCPConnector object at 0x7f86357e60d0>

INFO - I'm using the latest release.

from valorant-discordbot.

staciax avatar staciax commented on June 26, 2024

try master version

from valorant-discordbot.

Nicolr33 avatar Nicolr33 commented on June 26, 2024

I also have the same issue, here is the error when trying to login, but instead of showing me an error on discord it just says that the application isn't available and it outputs me this in the console.

 BOT IS READY !
Version: 3.1.0-aiohttp
Task exception was never retrieved
future: <Task finished name='CommandTree-invoker' coro=<CommandTree._from_interaction.<locals>.wrapper()                                                   done, defined at /usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py:987> exception=TypeE                                                  rror('Subscripted generics cannot be used with class and instance checks')>
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/commands.py", line 649, in _do_call
    return await self._callback(self.binding, interaction, **params)  # type: ignore
  File "/home/mana/valorant/cogs/valorant.py", line 97, in login
    authenticate = await auth.authenticate(username, password)
  File "/home/mana/valorant/utils/valorant/auth.py", line 94, in authenticate
    data = await r.json()
  File "/usr/local/lib/python3.9/dist-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 "/usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py", line 1156, in call
    await command._invoke_with_namespace(interaction, namespace)
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/commands.py", line 675, in _invoke_wi                                                  th_namespace
    return await self._do_call(interaction, transformed_values)
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/commands.py", line 668, 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://au                                                  th.riotgames.com/api/v1/authorization')

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py", line 989, in wrapper
    await self.call(interaction)
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py", line 1159, in call
    await self.on_error(interaction, e)
  File "/home/mana/valorant/cogs/errors.py", line 64, in on_app_command_error
    elif isinstance(error, Union[AppCommandNotFound, MissingPermissions, BotMissingPermissions]):
  File "/usr/lib/python3.9/typing.py", line 703, in __instancecheck__
    return self.__subclasscheck__(type(obj))
  File "/usr/lib/python3.9/typing.py", line 706, 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 0x7f86357eef40>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7f86358e7640>, 8266831.166564328)]']
connector: <aiohttp.connector.TCPConnector object at 0x7f86357e60d0>

INFO - I'm using the latest release.

It didn't work for me either, I deleted and reinstalled and it works! @osu

from valorant-discordbot.

osu avatar osu commented on June 26, 2024

try master version

Using master version got this error still.

BOT IS READY !
Version: 3.1.0-aiohttp
Task exception was never retrieved
future: <Task finished name='CommandTree-invoker' coro=<CommandTree._from_interaction.<locals>.wrapper() done, defined at /usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py:987> exception=TypeError('Subscripted generics cannot be used with class and instance checks')>
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/commands.py", line 649, in _do_call
    return await self._callback(self.binding, interaction, **params)  # type: ignore
  File "/home/mana/valorant/cogs/valorant.py", line 97, in login
    authenticate = await auth.authenticate(username, password)
  File "/home/mana/valorant/utils/valorant/auth.py", line 114, in authenticate
    data = await r.json()
  File "/usr/local/lib/python3.9/dist-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 "/usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py", line 1156, in call
    await command._invoke_with_namespace(interaction, namespace)
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/commands.py", line 675, in _invoke_with_namespace
    return await self._do_call(interaction, transformed_values)
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/commands.py", line 668, 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 "/usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py", line 989, in wrapper
    await self.call(interaction)
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py", line 1159, in call
    await self.on_error(interaction, e)
  File "/home/mana/valorant/cogs/errors.py", line 64, in on_app_command_error
    elif isinstance(error, Union[AppCommandNotFound, MissingPermissions, BotMissingPermissions]):
  File "/usr/lib/python3.9/typing.py", line 703, in __instancecheck__
    return self.__subclasscheck__(type(obj))
  File "/usr/lib/python3.9/typing.py", line 706, 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 0x7f2726107640>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7f2725567be0>, 8288210.421658162)]']
connector: <aiohttp.connector.TCPConnector object at 0x7f2725440370>

from valorant-discordbot.

staciax avatar staciax commented on June 26, 2024

cloudflare gave me a huge headache.

you can try again master

from valorant-discordbot.

osu avatar osu commented on June 26, 2024

cloudflare gave me a huge headache.

you can try again master

Tried again importing master directly.

Getting this.

BOT IS READY !
Version: 3.1.3
Task exception was never retrieved
future: <Task finished name='CommandTree-invoker' coro=<CommandTree._from_interaction.<locals>.wrapper() done, defined at /usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py:987> exception=TypeError('Subscripted generics cannot be used with class and instance checks')>
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/commands.py", line 649, in _do_call
    return await self._callback(self.binding, interaction, **params)  # type: ignore
  File "/home/mana/valorant/cogs/valorant.py", line 91, in login
    authenticate = await auth.authenticate(username, password)
  File "/home/mana/valorant/utils/valorant/auth.py", line 122, in authenticate
    data = await r.json()
  File "/usr/local/lib/python3.9/dist-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 "/usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py", line 1156, in call
    await command._invoke_with_namespace(interaction, namespace)
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/commands.py", line 675, in _invoke_with_namespace
    return await self._do_call(interaction, transformed_values)
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/commands.py", line 668, 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 "/usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py", line 989, in wrapper
    await self.call(interaction)
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py", line 1159, in call
    await self.on_error(interaction, e)
  File "/home/mana/valorant/cogs/errors.py", line 47, in on_app_command_error
    elif isinstance(error, Union[AppCommandNotFound, MissingPermissions, BotMissingPermissions]):
  File "/usr/lib/python3.9/typing.py", line 703, in __instancecheck__
    return self.__subclasscheck__(type(obj))
  File "/usr/lib/python3.9/typing.py", line 706, 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 0x7f2c91ac9be0>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7f2c90f6c940>, 8295956.895546693)]']
connector: <aiohttp.connector.TCPConnector object at 0x7f2c91ac9370>

from valorant-discordbot.

staciax avatar staciax commented on June 26, 2024

Tomorrow I will try to fix it again. ;-;)

from valorant-discordbot.

osu avatar osu commented on June 26, 2024

Tomorrow I will try to fix it again. ;-;)

All good, let me know !

from valorant-discordbot.

staciax avatar staciax commented on June 26, 2024

Tomorrow I will try to fix it again. ;-;)

All good, let me know !

auth.zip

try replace utils/valorant/auth.py

from valorant-discordbot.

osu avatar osu commented on June 26, 2024

Tomorrow I will try to fix it again. ;-;)

All good, let me know !

auth.zip

try replace utils/valorant/auth.py

Version: 3.1.3
Task exception was never retrieved
future: <Task finished name='CommandTree-invoker' coro=<CommandTree._from_interaction.<locals>.wrapper() done, defined at /usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py:987> exception=TypeError('Subscripted generics cannot be used with class and instance checks')>
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/commands.py", line 649, in _do_call
    return await self._callback(self.binding, interaction, **params)  # type: ignore
  File "/home/mana/valorant/cogs/valorant.py", line 91, in login
    authenticate = await auth.authenticate(username, password)
  File "/home/mana/valorant/utils/valorant/auth.py", line 123, in authenticate
    data = await r.json()
  File "/usr/local/lib/python3.9/dist-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 "/usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py", line 1156, in call
    await command._invoke_with_namespace(interaction, namespace)
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/commands.py", line 675, in _invoke_with_namespace
    return await self._do_call(interaction, transformed_values)
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/commands.py", line 668, 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 "/usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py", line 989, in wrapper
    await self.call(interaction)
  File "/usr/local/lib/python3.9/dist-packages/discord/app_commands/tree.py", line 1159, in call
    await self.on_error(interaction, e)
  File "/home/mana/valorant/cogs/errors.py", line 47, in on_app_command_error
    elif isinstance(error, Union[AppCommandNotFound, MissingPermissions, BotMissingPermissions]):
  File "/usr/lib/python3.9/typing.py", line 703, in __instancecheck__
    return self.__subclasscheck__(type(obj))
  File "/usr/lib/python3.9/typing.py", line 706, 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 0x7fe2b26aad90>
Unclosed connector
connections: ['[(<aiohttp.client_proto.ResponseHandler object at 0x7fe2b1909040>, 8378288.286409643)]']
connector: <aiohttp.connector.TCPConnector object at 0x7fe2b263d730>```

from valorant-discordbot.

staciax avatar staciax commented on June 26, 2024

os windows 10 right?
You don't use vpn right?

from valorant-discordbot.

osu avatar osu commented on June 26, 2024

os windows 10 right?
You don't use vpn right?

No, Debian OS based server hosted at Hetzner (Nuremberg city)

from valorant-discordbot.

staciax avatar staciax commented on June 26, 2024

It has to do with protocol, ssl, or internet related stuff, I'm not really sure.

from valorant-discordbot.

lennihein avatar lennihein commented on June 26, 2024

Issue still exists, there is no valid response by the Riot Auth servers

from valorant-discordbot.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.