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

Upgrade aiohttp #9348

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

Conversation

Dreamsorcerer
Copy link
Contributor

No description provided.

@Dreamsorcerer Dreamsorcerer marked this pull request as ready for review October 22, 2024 13:03
@Dreamsorcerer
Copy link
Contributor Author

Dreamsorcerer commented Oct 22, 2024

Database credentials don't work anymore? I haven't touched those in the PR..

@Dreamsorcerer
Copy link
Contributor Author

@NateBrady23 or anyone know what to change for the DB credentials? Would be good to get this upgrade in as there's been a lot of performance optimisations in recent releases (though they may be a magnitude more noticeable in real world scenarios than these simple benchmarks).

@volyrique
Copy link
Contributor

Could it be an issue with the authentication method (issue #8061 might be related)?

@Dreamsorcerer
Copy link
Contributor Author

Could it be an issue with the authentication method (issue #8061 might be related)?

I'm unclear. We just create a DSN with user/password, so I don't see anything we'd need to change for that:

password=os.getenv('PGPASS', 'benchmarkdbpass'),

Appears that asyncpg implemented the auth method 6 years ago, so I doubt it's an issue there either..

@volyrique
Copy link
Contributor

volyrique commented Jan 12, 2025

Yes, but the point is that the password is not necessarily sent in cleartext to the server - see here. asyncpg might not be using the correct method (the defaults have changed much more recently than 6 years ago, as the issue I linked to demonstrates, and some methods might have been removed - other frameworks have been broken by database updates), hence failing with an authentication error. The error message doesn't seem to go into that kind of details, so I would probably run a packet capture to see what is happening on the wire, unless asyncpg provides that information somehow (I am not familiar with it).

Just an idea, since you were asking for suggestions.

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

Successfully merging this pull request may close these issues.

2 participants