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

Catch wrong credentials for pSQL #6422

Open
Kowlin opened this issue Aug 6, 2024 · 0 comments
Open

Catch wrong credentials for pSQL #6422

Kowlin opened this issue Aug 6, 2024 · 0 comments
Labels
Category: Core - API - Config This is related to the `redbot.core.config` module and `redbot.core.drivers` package. Status: Accepted We want this Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.

Comments

@Kowlin
Copy link
Member

Kowlin commented Aug 6, 2024

The fact that no one caught this after all these years... is kinda funny!

(venv) C:\Users\oriko\coding\red>redbot ori299
The main bot task didn't handle an exception and has crashed
Traceback (most recent call last):
  File "C:\Users\oriko\coding\red\venv\Lib\site-packages\redbot\__main__.py", line 470, in red_exception_handler
    red_task.result()
  File "C:\Users\oriko\coding\red\venv\Lib\site-packages\redbot\__main__.py", line 315, in run_bot
    await driver_cls.initialize(**data_manager.storage_details())
  File "C:\Users\oriko\coding\red\venv\Lib\site-packages\redbot\core\_drivers\postgres\postgres.py", line 47, in initialize
    cls._pool = await asyncpg.create_pool(**storage_details)
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\oriko\coding\red\venv\Lib\site-packages\asyncpg\pool.py", line 403, in _async__init__
    await self._initialize()
  File "C:\Users\oriko\coding\red\venv\Lib\site-packages\asyncpg\pool.py", line 430, in _initialize
    await first_ch.connect()
  File "C:\Users\oriko\coding\red\venv\Lib\site-packages\asyncpg\pool.py", line 128, in connect
    self._con = await self._pool._get_new_connection()
                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\oriko\coding\red\venv\Lib\site-packages\asyncpg\pool.py", line 502, in _get_new_connection
    con = await connection.connect(
          ^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\oriko\coding\red\venv\Lib\site-packages\asyncpg\connection.py", line 2329, in connect
    return await connect_utils._connect(
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\oriko\coding\red\venv\Lib\site-packages\asyncpg\connect_utils.py", line 991, in _connect
    conn = await _connect_addr(
           ^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\oriko\coding\red\venv\Lib\site-packages\asyncpg\connect_utils.py", line 828, in _connect_addr
    return await __connect_addr(params, True, *args)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\oriko\coding\red\venv\Lib\site-packages\asyncpg\connect_utils.py", line 876, in __connect_addr
    await connected
asyncpg.exceptions.InvalidPasswordError: password authentication failed for user "oriko"
Attempting to die as gracefully as possible...
Task exception was never retrieved
future: <Task finished name='Task-2' coro=<shutdown_handler() done, defined at C:\Users\oriko\coding\red\venv\Lib\site-packages\redbot\__main__.py:425> exception=AttributeError("'Red' object has no attribute '_AutoShardedClient__queue'")>
Traceback (most recent call last):
  File "C:\Users\oriko\coding\red\venv\Lib\site-packages\redbot\__main__.py", line 441, in shutdown_handler
    await red.close()
  File "C:\Users\oriko\coding\red\venv\Lib\site-packages\redbot\core\bot.py", line 2178, in close
    await super().close()
  File "C:\Users\oriko\coding\red\venv\Lib\site-packages\discord\ext\commands\bot.py", line 247, in close
    await super().close()  # type: ignore
    ^^^^^^^^^^^^^^^^^^^^^
  File "C:\Users\oriko\coding\red\venv\Lib\site-packages\discord\shard.py", line 498, in close
    await self._closing_task
  File "C:\Users\oriko\coding\red\venv\Lib\site-packages\discord\shard.py", line 495, in _close
    self.__queue.put_nowait(EventItem(EventType.clean_close, None, None))
    ^^^^^^^^^^^^
AttributeError: 'Red' object has no attribute '_AutoShardedClient__queue'
@Kowlin Kowlin added Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing. Category: Core - API - Config This is related to the `redbot.core.config` module and `redbot.core.drivers` package. labels Aug 6, 2024
@github-actions github-actions bot added the Status: Needs Triage This has not been labeled or discussed for handling yet. label Aug 6, 2024
@Kowlin Kowlin added Status: Accepted We want this and removed Status: Needs Triage This has not been labeled or discussed for handling yet. labels Aug 24, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Category: Core - API - Config This is related to the `redbot.core.config` module and `redbot.core.drivers` package. Status: Accepted We want this Type: Bug Unexpected behavior, result, or exception. In case of PRs, it is a fix for the foregoing.
Projects
None yet
Development

No branches or pull requests

1 participant